[swift] Fix segfault on stopping server
This commit is contained in:
parent
ee0d03b4d0
commit
182df4e6ae
1 changed files with 4 additions and 1 deletions
|
@ -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(); }
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue