Fix inverted condition in panic handler

Fixes 139d204c (Restore terminal state again in panic handler, 2024-10-12).
This commit is contained in:
Johannes Altmanninger 2024-10-19 21:39:56 +02:00
parent 85801b443a
commit 3d5ef2bcf5

View File

@ -34,7 +34,7 @@ pub fn panic_handler(main: impl FnOnce() -> i32 + UnwindSafe) -> ! {
"%s crashed, please report a bug.", "%s crashed, please report a bug.",
PROGRAM_NAME.get().unwrap(), PROGRAM_NAME.get().unwrap(),
); );
if is_main_thread() { if !is_main_thread() {
eprintf!("\n"); eprintf!("\n");
std::thread::sleep(Duration::from_secs(1)); std::thread::sleep(Duration::from_secs(1));
} else { } else {