Skip to content

Commit 9b7dd9a

Browse files
gsalgadomariameda
authored andcommitted
p2p: don't discard reason set by Disconnect (ethereum#16559)
Peer.run was discarding the reason for disconnection sent to the disc channel by Disconnect.
1 parent 1dbd6f2 commit 9b7dd9a

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)