diff --git a/eth/filters/api.go b/eth/filters/api.go index 46c9f44bb..30d7b71c3 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -78,6 +78,7 @@ func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI { // Tt is started when the api is created. func (api *PublicFilterAPI) timeoutLoop() { ticker := time.NewTicker(5 * time.Minute) + defer ticker.Stop() for { <-ticker.C api.filtersMu.Lock()