Fixed Segfault when stopping server
This commit is contained in:
parent
36db19cb02
commit
f674dd47d4
2 changed files with 24 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue