aboutsummaryrefslogtreecommitdiffstats
path: root/dex/peer.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-29 13:00:55 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:50:05 +0800
commitf20d8dafceb6ba70ff42dc78939a68d251d1b829 (patch)
tree4d7f3523828caf7f7dd8bed50eabb00d424fa5a3 /dex/peer.go
parentf565ee59fabb3888dd7002251f87765ca64fd475 (diff)
downloaddexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar.gz
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar.bz2
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar.lz
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar.xz
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.tar.zst
dexon-f20d8dafceb6ba70ff42dc78939a68d251d1b829.zip
dex: fix initial build connection bug (#311)
Diffstat (limited to 'dex/peer.go')
-rw-r--r--dex/peer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dex/peer.go b/dex/peer.go
index 0d23e630f..d3650d00d 100644
--- a/dex/peer.go
+++ b/dex/peer.go
@@ -929,6 +929,8 @@ func (ps *peerSet) ForgetConnection(round uint64) {
ps.lock.Lock()
defer ps.lock.Unlock()
+ log.Debug("Forget connection", "round", round)
+
for label := range ps.directConn {
if label.round <= round {
ps.forgetDirectConn(label)