Fix logfiles not being deleted if captured application is the last user

* Previously only the UI itself would delete the log if it was the last thing to
  close.
This commit is contained in:
baldurk committed 2020-08-04 14:48:51 +01:00
1 parent 211d8532fa
commit 31b7c35bae
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -292,10 +292,10 @@ void rdclog_enableoutput()
log_output_enabled = true;
}
void rdclog_closelog(const char *filename)
void rdclog_closelog()
{
log_output_enabled = false;
FileIO::logfile_close(logfileHandle, filename);
FileIO::logfile_close(logfileHandle, logfile.c_str());
}
void rdclog_flush()