Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
sync: set state to idle after sync is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Sep 18, 2018
1 parent d04e5e4 commit 6d06c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethcore/sync/src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ impl ChainSync {
fn complete_sync(&mut self, io: &mut SyncIo) {
trace!(target: "sync", "Sync complete");
self.reset(io);
self.state = SyncState::Idle;
}

/// Enter waiting state
Expand Down

0 comments on commit 6d06c7a

Please sign in to comment.