Safety check on unreachable case
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
bc522b57c1
commit
f982e55c4f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue