add logo, shutdown LogRemote on exit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user