From 6863f5cb1da9005b3f6c1f47cb94fbdc6c911ef9 Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 2 Apr 2020 09:25:45 +0000 Subject: [PATCH] eth/filters/api : Add missing calls of ticket stop --- eth/filters/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/filters/api.go b/eth/filters/api.go index 46c9f44bb0..30d7b71c31 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()