mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-17 16:34:54 -05:00
fix: properly clean up gamemode listener busctl processes (#840)
This commit is contained in:
@@ -108,7 +108,8 @@ impl GameModeConnector {
|
||||
.arg(INTERFACE_NAME)
|
||||
.arg("/com/feralinteractive/GameMode")
|
||||
.arg(INTERFACE_NAME)
|
||||
.arg("ListGames");
|
||||
.arg("ListGames")
|
||||
.kill_on_drop(true);
|
||||
debug!("running {cmd:?}");
|
||||
let output = cmd.output().await?;
|
||||
let response: GamesResponse =
|
||||
@@ -140,6 +141,7 @@ impl GameModeConnector {
|
||||
.arg("--match")
|
||||
.arg(format!("sender={INTERFACE_NAME},type=signal"))
|
||||
.stdout(Stdio::piped())
|
||||
.kill_on_drop(true)
|
||||
.spawn()?;
|
||||
|
||||
let stdout = child.stdout.take().context("No child stdout")?;
|
||||
|
||||
Reference in New Issue
Block a user