Add logging to event checker

This commit is contained in:
Jonathan Kelley 2024-02-22 13:55:29 -08:00
parent 2ead6c6074
commit 48d6a9acbb
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -16,6 +16,7 @@ pub(crate) fn check_app_exits(app: fn() -> Element) {
std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_secs(60));
if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
eprintln!("App did not exit in time");
std::process::exit(exitcode::SOFTWARE);
}
});