mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
accounts/keystore: Fix double-events problem
This commit is contained in:
parent
9929bcc40d
commit
c7fceeb32f
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ func (w *watcher) loop() {
|
||||||
hadEvent = true
|
hadEvent = true
|
||||||
}
|
}
|
||||||
case <-debounce.C:
|
case <-debounce.C:
|
||||||
|
hadEvent = false
|
||||||
accounts, err := w.ac.scan()
|
accounts, err := w.ac.scan()
|
||||||
w.ac.mu.Lock()
|
w.ac.mu.Lock()
|
||||||
w.ac.handleScanResult(accounts, err)
|
w.ac.handleScanResult(accounts, err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue