Skip to content

Commit

Permalink
eth/filters: add missing Ticker.Stop call (ethereum#20862)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 228a297 commit 47f7c73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/filters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 47f7c73

Please sign in to comment.