Fix Various Bugs Associated with Profile Start Up / Restart #515

Merged
sarah merged 5 commits from startupbugs into master 2023-05-16 23:21:41 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit f982e55c4f - Show all commits

View File

@ -374,7 +374,9 @@ func (e *engine) peerWithOnion(onion string) {
return
}
log.Debugf("PeerWithOnion something went very wrong...%v %v", onion, err)
conn.Close()
if conn != nil {
conn.Close()
}
e.ignoreOnShutdown(e.peerDisconnected)(onion)
} else {
log.Debugf("PeerWithOnion %v %v", onion, err)