Skip to content

Commit 449e453

Browse files
committed
fix lock
1 parent 948e8b3 commit 449e453

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ethstorage/scanner/scanner.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ func (s *Scanner) Close() {
173173
return
174174
}
175175
s.running = false
176-
cancel := s.cancel
177176
s.mu.Unlock()
178177

179-
cancel()
178+
s.cancel()
180179
s.wg.Wait()
181180
s.lg.Info("Scanner closed")
182181
}

0 commit comments

Comments
 (0)