diff options
-rw-r--r-- | src/log.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.cpp b/src/log.cpp index 136afd3..1f27e63 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -350,11 +350,11 @@ void t_log::enable_inform_user(bool on) { if (!thr_logview) { thr_logview = new t_thread(main_logview, NULL); - thr_logview->detach(); } } else { if (thr_logview) { thr_logview->cancel(); + thr_logview->join(); delete thr_logview; thr_logview = NULL; } |