aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/table.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-28 15:28:04 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-28 15:28:04 +0800
commit4992765032b4318f3f5b4940a553b4e552c55963 (patch)
tree7c588f14e8b6fe0ea444b5f4fad720bc9051348b /p2p/discover/table.go
parent437cf4b3acf1b5a4efde64aacaacdf14289010d1 (diff)
downloaddexon-4992765032b4318f3f5b4940a553b4e552c55963.tar
dexon-4992765032b4318f3f5b4940a553b4e552c55963.tar.gz
dexon-4992765032b4318f3f5b4940a553b4e552c55963.tar.bz2
dexon-4992765032b4318f3f5b4940a553b4e552c55963.tar.lz
dexon-4992765032b4318f3f5b4940a553b4e552c55963.tar.xz
dexon-4992765032b4318f3f5b4940a553b4e552c55963.tar.zst
dexon-4992765032b4318f3f5b4940a553b4e552c55963.zip
p2p/discover: fix goroutine leak due to blocking on sync.Once
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r--p2p/discover/table.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index 060aa7c09..d3fe373f4 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -335,7 +335,7 @@ func (tab *Table) ping(id NodeID, addr *net.UDPAddr) error {
}
// Pong received, update the database and return
tab.db.updateLastPong(id, time.Now())
- go tab.db.expirer()
+ tab.db.ensureExpirer()
return nil
}