removed redundant if condition

This commit is contained in:
debris 2016-06-14 03:04:06 +02:00
parent ca33f7c18d
commit 0b8710a2a1

View File

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