diff options
author | Guilherme Salgado <gsalgado@gmail.com> | 2018-05-09 07:20:20 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-05-09 07:20:20 +0800 |
commit | c60f6f62147048f80a0e092b483318af88b5d78b (patch) | |
tree | e100f8569528c966936798a3feaf8f978977d339 /p2p/peer.go | |
parent | ba975dc0931b9f2962b2f163675772458ed339fd (diff) | |
download | dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar.gz dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar.bz2 dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar.lz dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar.xz dexon-c60f6f62147048f80a0e092b483318af88b5d78b.tar.zst dexon-c60f6f62147048f80a0e092b483318af88b5d78b.zip |
p2p: don't discard reason set by Disconnect (#16559)
Peer.run was discarding the reason for disconnection sent to the disc
channel by Disconnect.
Diffstat (limited to 'p2p/peer.go')
-rw-r--r-- | p2p/peer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/peer.go b/p2p/peer.go index 73e33418e..c3907349f 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -220,6 +220,7 @@ loop: reason = discReasonForError(err) break loop case err = <-p.disc: + reason = discReasonForError(err) break loop } } |