diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2018-08-25 08:47:18 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-08-25 08:47:18 +0200 |
commit | 41f4a92fa97deb951833b0807c2359518e87ae15 (patch) | |
tree | 33b4e8e071df1aa1f0cd8d6ddf9ead71518b5dea /src | |
parent | dd4d444c0ccf0f1e16e2eb550b8e78dc557906f6 (diff) | |
download | calcurse-41f4a92fa97deb951833b0807c2359518e87ae15.tar.gz calcurse-41f4a92fa97deb951833b0807c2359518e87ae15.zip |
Only stop threads when exiting from interactive mode
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c index bb90e36..b90a9bf 100644 --- a/src/utils.c +++ b/src/utils.c @@ -74,11 +74,11 @@ void exit_calcurse(int status) { int was_interactive; - ui_calendar_stop_date_thread(); - io_stop_psave_thread(); - if (ui_mode == UI_CURSES) { notify_stop_main_thread(); + ui_calendar_stop_date_thread(); + io_stop_psave_thread(); + clear(); wins_refresh(); endwin(); |