fix some potential go routine leaks

This commit is contained in:
Asim Aslam
2019-12-08 15:02:54 +00:00
parent d28a868e46
commit 6064e1426c
2 changed files with 7 additions and 10 deletions

View File

@@ -1145,8 +1145,6 @@ func (n *network) connect() {
n.sendConnect()
}
log.Tracef("connected %v discovered %v backoff %v\n", connected, discovered, backoff.Do(attempts))
// check if we've been discovered
select {
case <-n.discovered: