Fix panic when logging in
This commit is contained in:
parent
ecabb22407
commit
e7a6c3f7af
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ func (s *SessionHandler) cancelResponse(requestID string, ch chan *IncomingRPCMe
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SessionHandler) receiveResponse(msg *IncomingRPCMessage) bool {
|
func (s *SessionHandler) receiveResponse(msg *IncomingRPCMessage) bool {
|
||||||
|
if msg.Message == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
requestID := msg.Message.SessionID
|
requestID := msg.Message.SessionID
|
||||||
s.responseWaitersLock.Lock()
|
s.responseWaitersLock.Lock()
|
||||||
ch, ok := s.responseWaiters[requestID]
|
ch, ok := s.responseWaiters[requestID]
|
||||||
|
|
Loading…
Reference in a new issue