diff --git a/connection_maker.go b/connection_maker.go index df8d04c..93cbb52 100644 --- a/connection_maker.go +++ b/connection_maker.go @@ -195,6 +195,11 @@ func (cm *connectionMaker) connectionTerminated(conn Connection, err error) { } delete(cm.connections, conn) if conn.isOutbound() { + if conn.Remote() != nil { + if _, ok := cm.ourself.Peer.connections[conn.Remote().Name]; ok { + return true + } + } target := cm.targets[conn.remoteTCPAddress()] target.state = targetWaiting target.lastError = err