From eac60ff6e4e40efbfe0211118bd694fb588729a6 Mon Sep 17 00:00:00 2001 From: Guilherme Salgado Date: Tue, 24 Apr 2018 22:23:01 +0100 Subject: [PATCH] p2p/peer: Don't discard reason sent by Disconnect() Peer.run() was discarding the reason for disconnection sent to the disc channel by Disconnect() --- p2p/peer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/peer.go b/p2p/peer.go index 73e33418ed0a..c3907349fc5a 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -220,6 +220,7 @@ loop: reason = discReasonForError(err) break loop case err = <-p.disc: + reason = discReasonForError(err) break loop } }