aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-18 05:04:57 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-18 05:04:57 +0800
commit2f4cbe22f5207b830f2685caae175cce70bcd231 (patch)
treeeac133c9dee26ec44418afc0fda6a1adf6e76555 /eth/sync.go
parentae36beb38f356a08370e95559d04243140105c32 (diff)
downloadgo-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.gz
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.zst
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.zip
eth, eth/downloader: fix processing interrupt caused by temp cancel
Diffstat (limited to 'eth/sync.go')
-rw-r--r--eth/sync.go2
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 {