mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly)
This commit is contained in:
committed by
Mat Sutcliffe
parent
add649c321
commit
741843d0c6
@@ -1302,14 +1302,14 @@ namespace BlackSimPlugin
|
||||
if (this->isShuttingDown()) { return; }
|
||||
Q_ASSERT_X(!CThreadUtils::isCurrentThreadApplicationThread(), Q_FUNC_INFO, "Expect to run in background");
|
||||
|
||||
const QString dbusAddress = m_xSwiftBusServerSettings.getThreadLocal().getDBusServerAddressQt();
|
||||
if (CDBusServer::isSessionOrSystemAddress(dbusAddress))
|
||||
m_dBusServerAddress = m_xSwiftBusServerSettings.getThreadLocal().getDBusServerAddressQt();
|
||||
if (CDBusServer::isSessionOrSystemAddress(m_dBusServerAddress))
|
||||
{
|
||||
checkConnectionViaBus(dbusAddress);
|
||||
checkConnectionViaBus(m_dBusServerAddress);
|
||||
}
|
||||
else if (CDBusServer::isQtDBusAddress(dbusAddress))
|
||||
else if (CDBusServer::isQtDBusAddress(m_dBusServerAddress))
|
||||
{
|
||||
checkConnectionViaPeer(dbusAddress);
|
||||
checkConnectionViaPeer(m_dBusServerAddress);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user