fix a SIGTERM handling issue

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-22 13:01:17 -06:00
parent 607eaae3a9
commit d2001e8e4b
No known key found for this signature in database

View file

@ -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");
}
});