Skip to content
Snippets Groups Projects
Commit cdb08989 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix crash that occurs if client sends a channel request and then checks if it...

Fix crash that occurs if client sends a channel request and then checks if it has received a request right after
parent 65dd5709
No related branches found
No related tags found
No related merge requests found
...@@ -326,7 +326,7 @@ func (s *Store) GetReceivedRequestData(partner *id.ID) (contact.Contact, error) ...@@ -326,7 +326,7 @@ func (s *Store) GetReceivedRequestData(partner *id.ID) (contact.Contact, error)
r, ok := s.requests[*partner] r, ok := s.requests[*partner]
s.mux.RUnlock() s.mux.RUnlock()
if !ok { if !ok || r.receive == nil {
return contact.Contact{}, errors.Errorf("Received request not "+ return contact.Contact{}, errors.Errorf("Received request not "+
"found: %s", partner) "found: %s", partner)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment