mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Fixes when dealing with refs #223 / https://dev.vatsim-germany.org/boards/22/topics/1691?r=1701#message-1701
* Wrong address split ip:port * Q_ASSERTs
This commit is contained in:
@@ -245,7 +245,14 @@ namespace BlackCore
|
||||
if (config.requiresDBusConnection())
|
||||
{
|
||||
this->initDBusConnection(dbusAddress);
|
||||
Q_ASSERT(this->m_dbusConnection.isConnected());
|
||||
if (!this->m_dbusConnection.isConnected())
|
||||
{
|
||||
QString notConnected("DBus connection failed");
|
||||
QString e = this->m_dbusConnection.lastError().message();
|
||||
if (!e.isEmpty()) notConnected.append(" ").append(e);
|
||||
Q_ASSERT_X(false, "CRuntime::init", notConnected.toUtf8().constData());
|
||||
qCritical() << notConnected;
|
||||
}
|
||||
}
|
||||
times.insert("DBus", time.restart());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user