Skip to content

Commit

Permalink
open log stream in log thread
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Dec 22, 2016
1 parent 4145251 commit 0ad3078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ namespace log {
{
if (!m_IsRunning)
{
Reopen ();
m_IsRunning = true;
m_Thread = new std::thread (std::bind (&Log::Run, this));
}
Expand Down Expand Up @@ -162,6 +161,7 @@ namespace log {

void Log::Run ()
{
Reopen ();
while (m_IsRunning)
{
std::shared_ptr<LogMsg> msg;
Expand Down

0 comments on commit 0ad3078

Please sign in to comment.