From 31f82eb3347454f64f3d41de3087109d09597806 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 24 Apr 2015 15:04:58 +0200 Subject: eth, eth/downloader: don't require td on downloader. Fixed tests --- eth/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eth/handler.go') diff --git a/eth/handler.go b/eth/handler.go index a1b03f57c..a5bc125da 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -134,14 +134,14 @@ out: if len(pm.peers) < minDesiredPeerCount { break } - itimer.Stop() // Find the best peer peer := getBestPeer(pm.peers) if peer == nil { glog.V(logger.Debug).Infoln("Sync attempt cancelled. No peers available") - return } + + itimer.Stop() go pm.synchronise(peer) case <-itimer.C: // The timer will make sure that the downloader keeps an active state -- cgit