Skip to content

Commit

Permalink
Fix Stop(bool) in Windows / MacOS Runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Aug 1, 2024
1 parent 930d4ea commit 9881fca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion daemon/src/platform/macos/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn run(tx: mpsc::Sender<EventTriggers>, mut stop: Shutdown) -> Result<
Some(_) = stream.recv() => {
// Trigger a Shutdown
debug!("TERM Signal Received, Triggering STOP");
let _ = tx.send(EventTriggers::Stop).await;
let _ = tx.send(EventTriggers::Stop(false)).await;
},

_ = stop.recv() => {
Expand Down
8 changes: 4 additions & 4 deletions daemon/src/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ pub async fn spawn_platform_runtime(
}
},
Some(_) = ctrl_break.recv() => {
tx.send(EventTriggers::Stop).await?;
tx.send(EventTriggers::Stop(false)).await?;
},
Some(_) = ctrl_close.recv() => {
debug!("Hit Ctrl+Close");
tx.send(EventTriggers::Stop).await?;
tx.send(EventTriggers::Stop(false)).await?;
}
Some(_) = ctrl_shutdown.recv() => {
debug!("Hit Ctrl+Shutdown");
tx.send(EventTriggers::Stop).await?;
tx.send(EventTriggers::Stop(false)).await?;
}
Some(_) = ctrl_logoff.recv() => {
debug!("Hit Ctrl+Logoff");
tx.send(EventTriggers::Stop).await?;
tx.send(EventTriggers::Stop(false)).await?;
}
//Some(_) = ctrl_
() = shutdown.recv() => {
Expand Down

0 comments on commit 9881fca

Please sign in to comment.