1
0
Fork 0

[swift] Fix segfault on stopping server

This commit is contained in:
Lars Toenning 2020-01-30 09:07:54 +01:00 committed by James Turner
parent ee0d03b4d0
commit 182df4e6ae

View file

@ -44,7 +44,10 @@ CPlugin::CPlugin()
CPlugin::~CPlugin()
{
m_dbusConnection->close();
if(m_dbusConnection)
{
m_dbusConnection->close();
}
m_shouldStop = true;
if (m_dbusThread.joinable()) { m_dbusThread.join(); }
}