aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-18 17:50:19 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-18 17:50:19 +0800
commit53a6145a2bd6f733799375700d117c9674e8207b (patch)
tree33f2291df6c6b91996433c56692a17ba432f011c /eth/sync.go
parentae36beb38f356a08370e95559d04243140105c32 (diff)
parent4365668462a1f3b1f637388ff33b714529536f3e (diff)
downloaddexon-53a6145a2bd6f733799375700d117c9674e8207b.tar
dexon-53a6145a2bd6f733799375700d117c9674e8207b.tar.gz
dexon-53a6145a2bd6f733799375700d117c9674e8207b.tar.bz2
dexon-53a6145a2bd6f733799375700d117c9674e8207b.tar.lz
dexon-53a6145a2bd6f733799375700d117c9674e8207b.tar.xz
dexon-53a6145a2bd6f733799375700d117c9674e8207b.tar.zst
dexon-53a6145a2bd6f733799375700d117c9674e8207b.zip
Merge pull request #1287 from karalabe/fix-downloader-cancel-interrupt
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 {