Only stop threads when exiting from interactive mode

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2018-08-25 08:47:18 +02:00
parent dd4d444c0c
commit 41f4a92fa9

View File

@ -74,11 +74,11 @@ void exit_calcurse(int status)
{
int was_interactive;
if (ui_mode == UI_CURSES) {
notify_stop_main_thread();
ui_calendar_stop_date_thread();
io_stop_psave_thread();
if (ui_mode == UI_CURSES) {
notify_stop_main_thread();
clear();
wins_refresh();
endwin();