From 0ad30785247a4bddcb79c8d594b11c52f718c4d6 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 22 Dec 2016 10:08:35 -0500 Subject: [PATCH] open log stream in log thread --- Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Log.cpp b/Log.cpp index a38fc808..7cd4205e 100644 --- a/Log.cpp +++ b/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 msg;