mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
eth/fetcher: add missing timer.Stop calls (#20861)
This commit is contained in:
parent
47f7c736cb
commit
66ed58bfcc
1 changed files with 2 additions and 0 deletions
|
|
@ -302,6 +302,8 @@ func (f *BlockFetcher) loop() {
|
||||||
// Iterate the block fetching until a quit is requested
|
// Iterate the block fetching until a quit is requested
|
||||||
fetchTimer := time.NewTimer(0)
|
fetchTimer := time.NewTimer(0)
|
||||||
completeTimer := time.NewTimer(0)
|
completeTimer := time.NewTimer(0)
|
||||||
|
defer fetchTimer.Stop()
|
||||||
|
defer completeTimer.Stop()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
// Clean up any expired block fetches
|
// Clean up any expired block fetches
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue