diff --git a/p2p/peer.go b/p2p/peer.go index 73e33418e..c3907349f 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 } }