Browse Source

fix infinite loop when not logging

sbg
Mark Whitehorn 9 years ago committed by Lorenz Meier
parent
commit
26596dbe15
  1. 6
      src/modules/logger/log_writer.cpp

6
src/modules/logger/log_writer.cpp

@ -103,6 +103,8 @@ void *LogWriter::run_helper(void *context) @@ -103,6 +103,8 @@ void *LogWriter::run_helper(void *context)
void LogWriter::run()
{
while (!_exit_thread) {
// Outer endless loop
// Wait for _should_run flag
while (!_exit_thread) {
bool start = false;
@ -116,9 +118,6 @@ void LogWriter::run() @@ -116,9 +118,6 @@ void LogWriter::run()
}
}
while (!_exit_thread) {
// Outer endless loop
int poll_count = 0;
int written = 0;
@ -196,7 +195,6 @@ void LogWriter::run() @@ -196,7 +195,6 @@ void LogWriter::run()
break;
}
}
}
}

Loading…
Cancel
Save