mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/filters/api : Add timer.Stop() for filter when it expired
This commit is contained in:
parent
f7b29ec942
commit
8b8d727f6b
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ func (api *PublicFilterAPI) timeoutLoop() {
|
||||||
case <-f.deadline.C:
|
case <-f.deadline.C:
|
||||||
f.s.Unsubscribe()
|
f.s.Unsubscribe()
|
||||||
delete(api.filters, id)
|
delete(api.filters, id)
|
||||||
|
go f.deadline.Stop()
|
||||||
default:
|
default:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue