diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-18 05:04:57 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-18 05:04:57 +0800 |
commit | 2f4cbe22f5207b830f2685caae175cce70bcd231 (patch) | |
tree | eac133c9dee26ec44418afc0fda6a1adf6e76555 /eth/sync.go | |
parent | ae36beb38f356a08370e95559d04243140105c32 (diff) | |
download | dexon-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.gz dexon-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.zst dexon-2f4cbe22f5207b830f2685caae175cce70bcd231.zip |
eth, eth/downloader: fix processing interrupt caused by temp cancel
Diffstat (limited to 'eth/sync.go')
-rw-r--r-- | eth/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/sync.go b/eth/sync.go index a3b177a4d..751bc1a2a 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -251,7 +251,7 @@ func (pm *ProtocolManager) fetcher() { // downloading hashes and blocks as well as retrieving cached ones. func (pm *ProtocolManager) syncer() { // Abort any pending syncs if we terminate - defer pm.downloader.Cancel() + defer pm.downloader.Terminate() forceSync := time.Tick(forceSyncCycle) for { |