Fix panic when logging in

This commit is contained in:
Tulir Asokan 2023-07-18 15:13:53 +03:00
parent ecabb22407
commit e7a6c3f7af

View file

@ -20,6 +20,9 @@ func (s *SessionHandler) cancelResponse(requestID string, ch chan *IncomingRPCMe
}
func (s *SessionHandler) receiveResponse(msg *IncomingRPCMessage) bool {
if msg.Message == nil {
return false
}
requestID := msg.Message.SessionID
s.responseWaitersLock.Lock()
ch, ok := s.responseWaiters[requestID]