Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit f036627

Browse files
gsalgadogbalint
authored andcommitted
p2p: don't discard reason set by Disconnect (#16559)
Peer.run was discarding the reason for disconnection sent to the disc channel by Disconnect.
1 parent 2fbe9dd commit f036627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/peer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ loop:
220220
reason = discReasonForError(err)
221221
break loop
222222
case err = <-p.disc:
223+
reason = discReasonForError(err)
223224
break loop
224225
}
225226
}

0 commit comments

Comments
 (0)