mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
refs #438, fixed assert situation in FS9 driver
This commit is contained in:
@@ -74,9 +74,9 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
bool CSimulatorFs9::connectTo()
|
bool CSimulatorFs9::connectTo()
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_fsuipc);
|
if (!fs9Host->isConnected()) { return false; } // host not available, we quit
|
||||||
Q_ASSERT(fs9Host->isConnected());
|
|
||||||
|
|
||||||
|
Q_ASSERT_X(m_fsuipc, Q_FUNC_INFO, "No FSUIPC");
|
||||||
m_connectionHostMessages = connect(fs9Host.data(), &CFs9Host::customPacketReceived, this, &CSimulatorFs9::ps_processFs9Message);
|
m_connectionHostMessages = connect(fs9Host.data(), &CFs9Host::customPacketReceived, this, &CSimulatorFs9::ps_processFs9Message);
|
||||||
|
|
||||||
if (m_useFsuipc)
|
if (m_useFsuipc)
|
||||||
@@ -84,7 +84,6 @@ namespace BlackSimPlugin
|
|||||||
m_fsuipc->connect(); // connect FSUIPC too
|
m_fsuipc->connect(); // connect FSUIPC too
|
||||||
}
|
}
|
||||||
m_dispatchTimerId = startTimer(50);
|
m_dispatchTimerId = startTimer(50);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user