fix logger: add forgotten unlock in Logger::write_info

This commit is contained in:
Beat Küng 2016-05-04 11:23:51 +02:00 committed by Lorenz Meier
parent 63bd2cebf9
commit 4edc0d9ea9
1 changed files with 2 additions and 1 deletions

View File

@ -692,6 +692,7 @@ void Logger::start_log()
write_version();
write_formats();
write_parameters();
_writer.notify();
_enabled = true;
}
@ -732,7 +733,6 @@ void Logger::write_formats()
}
_writer.unlock();
_writer.notify();
}
/* write info message */
@ -757,6 +757,7 @@ void Logger::write_info(const char *name, const char *value)
write_wait(buffer, msg_size);
}
_writer.unlock();
}
/* write version info messages */