Skip to content

Commit

Permalink
miner/worker: add missing timer.Stop call (ethereum#20857)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent c87cdd3 commit ad4b60e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
)

timer := time.NewTimer(0)
defer timer.Stop()
<-timer.C // discard the initial tick

// commit aborts in-flight transaction execution with given signal and resubmits a new one.
Expand Down

0 comments on commit ad4b60e

Please sign in to comment.