fix a SIGTERM handling issue
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
607eaae3a9
commit
d2001e8e4b
1 changed files with 0 additions and 1 deletions
|
@ -38,7 +38,6 @@ fn interrupt() -> mpsc::Receiver<()> {
|
|||
tokio::signal::unix::signal(tokio::signal::unix::SignalKind::terminate())
|
||||
.expect("Failed to listen for SIGTERM");
|
||||
while sigterm.recv().await.is_some() {
|
||||
sigterm.recv().await;
|
||||
tx_clone.send(()).await.expect("Failed to send interrupt");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue