mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
Add logging to event checker
This commit is contained in:
parent
2ead6c6074
commit
48d6a9acbb
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue