filesharing #28

Merged
dan merged 7 commits from filesharing into trunk 2021-09-30 17:21:37 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 3aac1dd47a - Show all commits

View File

@ -113,7 +113,7 @@ func (p *PeerHelper) GetNick(id string) string {
// we do not have a canonical nick for this contact.
// re-request if authenticated
// TODO: This check probably doesn't belong here...
if p.peer.GetContact(id).State == connections.ConnectionStateName[connections.AUTHENTICATED] {
if contact := p.peer.GetContact(id); contact != nil && contact.State == connections.ConnectionStateName[connections.AUTHENTICATED] {
p.peer.SendGetValToPeer(id, attr.PublicScope, constants.Name)
}
}