Skip to content

Commit c60f6f6

Browse files
gsalgadofjl
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 ba975dc commit c60f6f6

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)