aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer.go
diff options
context:
space:
mode:
authorGuilherme Salgado <gsalgado@gmail.com>2018-05-09 07:20:20 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-05-09 07:20:20 +0800
commitc60f6f62147048f80a0e092b483318af88b5d78b (patch)
treee100f8569528c966936798a3feaf8f978977d339 /p2p/peer.go
parentba975dc0931b9f2962b2f163675772458ed339fd (diff)
downloaddexon-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.go1
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
}
}