fix stuck goroutine
This commit is contained in:
parent
fad4d7f170
commit
300e1980af
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…
Add table
Reference in a new issue