Browse Source

Allow sync_log_entry daemon to exit before election daemon.

Jing Yang 3 years ago
parent
commit
51cbafc283
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/sync_log_entries.rs

+ 2 - 3
src/sync_log_entries.rs

@@ -50,9 +50,8 @@ impl SyncLogEntriesComms {
     }
 
     pub fn kill(&self) {
-        self.tx
-            .send(Event::Shutdown)
-            .expect("The sync log entries daemon should still be alive");
+        // The sync log entry daemon might have exited.
+        let _ = self.tx.send(Event::Shutdown);
     }
 
     fn rerun(&self, peer: Peer) {