Skip to content

Commit

Permalink
avoid crashing on SIGINT by not redrawing the UI
Browse files Browse the repository at this point in the history
Not really much point in redrawing the UI when we’re about to be
killed anyway.

Fixes #76130
  • Loading branch information
Daniel Brooks committed Sep 3, 2024
1 parent fe410bf commit c574a22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@ void exit_handler( int s )
imclient.reset();
exit( exit_status );
}
} else {
inp_mngr.set_timeout( old_timeout );
ui_manager::redraw_invalidated();
catacurses::doupdate();
}
inp_mngr.set_timeout( old_timeout );
ui_manager::redraw_invalidated();
catacurses::doupdate();
}

struct arg_handler {
Expand Down

0 comments on commit c574a22

Please sign in to comment.