diff --git a/ef/Utilities/General/LogModule.cpp b/ef/Utilities/General/LogModule.cpp index b847c807501..a0341826723 100644 --- a/ef/Utilities/General/LogModule.cpp +++ b/ef/Utilities/General/LogModule.cpp @@ -125,7 +125,9 @@ setLogFile(const char* inFileName) void LogModuleObject:: flushLogFile() { - if (file) + FILE *f; + f = getFile(); + if (f) fflush(file); } #endif