mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-dht.grp.Ch():
|
case <-dht.grp.Ch():
|
||||||
|
return
|
||||||
|
|
||||||
case <-maintenance.C:
|
case <-maintenance.C:
|
||||||
maxAnnounce := dht.conf.AnnounceRate * int(dht.conf.ReannounceTime.Seconds())
|
maxAnnounce := dht.conf.AnnounceRate * int(dht.conf.ReannounceTime.Seconds())
|
||||||
|
|
Loading…
Add table
Reference in a new issue