fix bug in logger_file where logger was used but not initialized

This commit is contained in:
Andre Puschmann 2018-05-09 13:52:19 +02:00
parent 5c7cf5594a
commit f7fee76022
1 changed files with 1 additions and 1 deletions

View File

@ -43,8 +43,8 @@ logger_file::logger_file()
logger_file::~logger_file() {
not_done = false;
log(new std::string("Closing log\n"));
if(inited) {
log(new std::string("Closing log\n"));
wait_thread_finish();
flush();
if (logfile) {