aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
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
parentba975dc0931b9f2962b2f163675772458ed339fd (diff)
downloadgo-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar
go-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar.gz
go-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar.bz2
go-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar.lz
go-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar.xz
go-tangerine-c60f6f62147048f80a0e092b483318af88b5d78b.tar.zst
go-tangerine-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')
-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
}
}