We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9060de8 commit 9817d58Copy full SHA for 9817d58
1 file changed
crates/hidpp-daemon/src/main.rs
@@ -191,7 +191,10 @@ fn run_tray_app(
191
tokio::signal::ctrl_c().await.ok();
192
}
193
info!("received shutdown signal");
194
- let _ = sigterm_tx.send(DaemonCommand::Shutdown).await;
+ if sigterm_tx.send(DaemonCommand::Shutdown).await.is_err() {
195
+ // Daemon already exited — nothing to shut down.
196
+ std::process::exit(0);
197
+ }
198
});
199
})
200
.expect("signal handler thread");
0 commit comments