소스 검색

Allow sync_log_entry daemon to exit before election daemon.

Jing Yang 3 년 전
부모
커밋
51cbafc283
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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) {