Skip to content

Commit

Permalink
p2p: don't discard reason set by Disconnect (ethereum#16559)
Browse files Browse the repository at this point in the history
Peer.run was discarding the reason for disconnection sent to the disc
channel by Disconnect.
  • Loading branch information
gsalgado authored and kielbarry committed May 14, 2018
1 parent 9620de7 commit 4cfe9aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ loop:
reason = discReasonForError(err)
break loop
case err = <-p.disc:
reason = discReasonForError(err)
break loop
}
}
Expand Down

0 comments on commit 4cfe9aa

Please sign in to comment.