mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
open log stream in log thread
This commit is contained in:
parent
4145251afd
commit
0ad3078524
1 changed files with 1 additions and 1 deletions
2
Log.cpp
2
Log.cpp
|
@ -72,7 +72,6 @@ namespace log {
|
|||
{
|
||||
if (!m_IsRunning)
|
||||
{
|
||||
Reopen ();
|
||||
m_IsRunning = true;
|
||||
m_Thread = new std::thread (std::bind (&Log::Run, this));
|
||||
}
|
||||
|
@ -162,6 +161,7 @@ namespace log {
|
|||
|
||||
void Log::Run ()
|
||||
{
|
||||
Reopen ();
|
||||
while (m_IsRunning)
|
||||
{
|
||||
std::shared_ptr<LogMsg> msg;
|
||||
|
|
Loading…
Add table
Reference in a new issue