accounts/keystore: Fix double-events problem

This commit is contained in:
Martin Holst Swende 2017-08-14 17:48:34 +02:00
parent ad11cf5100
commit e4ae060842

View file

@ -99,6 +99,7 @@ func (w *watcher) loop() {
hadEvent = true
}
case <-debounce.C:
hadEvent = false
accounts, err := w.ac.scan()
w.ac.mu.Lock()
w.ac.handleScanResult(accounts, err)