fix stuck goroutine
This commit is contained in:
parent
38eaa17a9b
commit
f701b78160
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ func (dht *DHT) runAnnouncer() {
|
|||
for {
|
||||
select {
|
||||
case <-dht.grp.Ch():
|
||||
return
|
||||
|
||||
case <-maintenance.C:
|
||||
maxAnnounce := dht.conf.AnnounceRate * int(dht.conf.ReannounceTime.Seconds())
|
||||
|
|
Loading…
Reference in a new issue