From bc522b57c100b5eec86f170cb648a8f80a63fc73 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 16 May 2023 15:44:33 -0700 Subject: [PATCH] Close connection in unreachable case --- protocol/connections/engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/connections/engine.go b/protocol/connections/engine.go index 52b91ba..7db469e 100644 --- a/protocol/connections/engine.go +++ b/protocol/connections/engine.go @@ -374,6 +374,7 @@ func (e *engine) peerWithOnion(onion string) { return } log.Debugf("PeerWithOnion something went very wrong...%v %v", onion, err) + conn.Close() e.ignoreOnShutdown(e.peerDisconnected)(onion) } else { log.Debugf("PeerWithOnion %v %v", onion, err)