Automatically Peer with Contacts

This commit is contained in:
Sarah Jamie Lewis 2019-02-14 11:30:31 -08:00
parent c6eb2189b0
commit 611506633c
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ func PresencePoller(getContact func(string) *gobjects.Contact, addContact func(c
cxnState, found := the.Peer.GetPeers()[contacts[i]]
if !found {
the.Peer.PeerWithOnion(contacts[i])
c2 := getContact(contacts[i])
if c2 != nil && c2.Status != -2 {
c2.Status = -2