Fixed Segfault when stopping server

This commit is contained in:
Ben Gräf 2019-10-26 15:17:36 +02:00
parent 36db19cb02
commit f674dd47d4
2 changed files with 24 additions and 1 deletions

View file

@ -92,7 +92,10 @@ void Service::stop()
{
std::lock_guard<std::mutex> lock(m_mutex);
m_timer->stop();
if (m_timer)
{
m_timer->stop();
}
m_clientCommand.clear();
m_clientStatus.clear();