diff --git a/cmd/geth/main.go b/cmd/geth/main.go index f2436c2382..55fe784b76 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -346,15 +346,15 @@ func startNode(ctx *cli.Context, stack *node.Node) { } } var mux = stack.EventMux() - var sub = mux.Subscribe(downloader.DoneEvent{},downloader.FailedEvent{}) + var sub = mux.Subscribe(downloader.DoneEvent{}) for { select { case headers := <-sub.Chan(): if headers == nil { return } - if 600 >= time.Now().Unix()-headers.Time.Unix() { - log.Info("Synchronisation completed, checking", "check",exitWhenSynced) + if 600 >= time.Now().Unix()-headers.Time.Unix() { + log.Info("Synchronisation completed, checking", "check", exitWhenSynced) time.Sleep(exitWhenSynced) stack.Stop() }