aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2018-08-25 08:47:18 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-08-25 08:47:18 +0200
commit41f4a92fa97deb951833b0807c2359518e87ae15 (patch)
tree33b4e8e071df1aa1f0cd8d6ddf9ead71518b5dea
parentdd4d444c0ccf0f1e16e2eb550b8e78dc557906f6 (diff)
downloadcalcurse-41f4a92fa97deb951833b0807c2359518e87ae15.tar.gz
calcurse-41f4a92fa97deb951833b0807c2359518e87ae15.zip
Only stop threads when exiting from interactive mode
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/utils.c6
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();