From ccee86055e05f3e610666225738ba7986b8ae58b Mon Sep 17 00:00:00 2001 From: Kioubit Date: Thu, 31 Oct 2024 03:28:10 +0200 Subject: [PATCH] Fix os signals for windows --- src/modules/explorer/os_signals.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/explorer/os_signals.rs b/src/modules/explorer/os_signals.rs index 42dcf92..4327ef4 100644 --- a/src/modules/explorer/os_signals.rs +++ b/src/modules/explorer/os_signals.rs @@ -30,12 +30,13 @@ pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender } #[cfg(windows)] -pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender) { +pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender) -> BoxResult<()>{ select! { _ = terminate_signal() => { sig_chan_tx.send(CustomSignal::Shutdown).unwrap(); } } + Ok(()) } #[cfg(unix)]