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 fjl committed May 8, 2018
1 parent ba975dc commit c60f6f6
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 c60f6f6

Please sign in to comment.