mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
[XSwiftBus] Fix crash when using P2P and no connection has been created
This commit is contained in:
committed by
Mat Sutcliffe
parent
b2e1d373f2
commit
b23583552b
@@ -17,7 +17,7 @@ namespace XSwiftBus
|
||||
|
||||
CDBusObject::~CDBusObject()
|
||||
{
|
||||
m_dbusConnection->unregisterDisconnectedCallback(this);
|
||||
if (m_dbusConnection) { m_dbusConnection->unregisterDisconnectedCallback(this); }
|
||||
};
|
||||
|
||||
void CDBusObject::setDBusConnection(const std::shared_ptr<CDBusConnection> &dbusConnection)
|
||||
|
||||
Reference in New Issue
Block a user