Make sure to exit on shutdown/error event

This commit is contained in:
2020-04-05 16:59:26 +02:00
parent 054013e11c
commit b9310e0e49
2 changed files with 6 additions and 2 deletions

View File

@@ -226,7 +226,8 @@ fn main() -> Result<()> {
},
_ => (),
},
Err(err) => warn!("Error: {}", err),
Ok(i3ipc::event::Event::ShutdownEvent(_info)) => std::process::exit(0),
Err(_err) => std::process::exit(0),
_ => (),
}
}