Merge pull request #1270 from ethcore/redundant_if_condition

removed redundant if condition
This commit is contained in:
Marek Kotewicz 2016-06-14 04:06:08 -07:00 committed by GitHub
commit 9940432051

View File

@ -492,7 +492,7 @@ impl MinerService for Miner {
trace!(target: "miner", "Miner sleeping (current {}, last {})", current_no, last_request);
self.sealing_enabled.store(false, atomic::Ordering::Relaxed);
self.sealing_work.lock().unwrap().reset();
} else if self.sealing_enabled.load(atomic::Ordering::Relaxed) {
} else {
self.prepare_sealing(chain);
}
}