add logo, shutdown LogRemote on exit

This commit is contained in:
2018-03-09 00:29:24 +01:00
parent bae030f1ad
commit fadced1391
7 changed files with 23 additions and 5 deletions

View File

@@ -30,6 +30,15 @@ void LogRemote::start()
LOG("NET thread loop exit");
});
}
void LogRemote::stop()
{
m_running = false;
m_mq.UnlockGetters();
if (m_thread.joinable())
m_thread.join();
}
void LogRemote::net_init()
{
if (!(curl = curl_easy_init()))
@@ -120,8 +129,5 @@ void LogRemote::log(const wchar_t* format, ...)
}
LogRemote::~LogRemote()
{
m_running = false;
m_mq.UnlockGetters();
if (m_thread.joinable())
m_thread.join();
stop();
}