Skip to content

Commit

Permalink
Fix os signals for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kioubit committed Oct 31, 2024
1 parent dafc379 commit ccee860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/explorer/os_signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender<CustomSignal>
}

#[cfg(windows)]
pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender<CustomSignal>) {
pub(super) async fn signal_listener(sig_chan_tx: broadcast::Sender<CustomSignal>) -> BoxResult<()>{
select! {
_ = terminate_signal() => {
sig_chan_tx.send(CustomSignal::Shutdown).unwrap();
}
}
Ok(())
}

#[cfg(unix)]
Expand Down

0 comments on commit ccee860

Please sign in to comment.