eth, eth/downloader: fix processing interrupt caused by temp cancel

This commit is contained in:
Péter Szilágyi
2015-06-18 00:04:57 +03:00
parent ae36beb38f
commit 2f4cbe22f5
3 changed files with 22 additions and 24 deletions

View File

@ -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 {