From e95d66832ce98bd660a9d422746e20b7a771e990 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 17 Jan 2017 13:05:02 +0100 Subject: [PATCH] Minor typo to ensure it updates only when synced. (#4188) --- updater/src/updater.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/src/updater.rs b/updater/src/updater.rs index 4406451ef..f9e235dd5 100644 --- a/updater/src/updater.rs +++ b/updater/src/updater.rs @@ -311,7 +311,7 @@ impl Updater { impl ChainNotify for Updater { fn new_blocks(&self, _imported: Vec, _invalid: Vec, _enacted: Vec, _retracted: Vec, _sealed: Vec, _proposed: Vec, _duration: u64) { match (self.client.upgrade(), self.sync.upgrade()) { - (Some(ref c), Some(ref s)) if s.status().is_syncing(c.queue_info()) => self.poll(), + (Some(ref c), Some(ref s)) if !s.status().is_syncing(c.queue_info()) => self.poll(), _ => {}, } }