mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
[FSD] Demote ASSERT to VERIFY
This commit is contained in:
committed by
Mat Sutcliffe
parent
60b556f118
commit
f6c5e6f3cb
@@ -622,7 +622,10 @@ namespace BlackCore
|
|||||||
void CFSDClient::sendPlaneInfoRequestFsinn(const CCallsign &callsign)
|
void CFSDClient::sendPlaneInfoRequestFsinn(const CCallsign &callsign)
|
||||||
{
|
{
|
||||||
if (CThreadUtils::callInObjectThread(this, [ = ] { if (sApp && !sApp->isShuttingDown()) { this->sendPlaneInfoRequestFsinn(callsign); }})) { return; }
|
if (CThreadUtils::callInObjectThread(this, [ = ] { if (sApp && !sApp->isShuttingDown()) { this->sendPlaneInfoRequestFsinn(callsign); }})) { return; }
|
||||||
Q_ASSERT_X(isConnected(), Q_FUNC_INFO, "Can't send to server when disconnected");
|
const bool connected = isConnected();
|
||||||
|
BLACK_VERIFY_X(connected, Q_FUNC_INFO, "Can't send to server when disconnected");
|
||||||
|
if (!connected) { return; }
|
||||||
|
|
||||||
const CSimulatedAircraft myAircraft(getOwnAircraft());
|
const CSimulatedAircraft myAircraft(getOwnAircraft());
|
||||||
QString modelString;
|
QString modelString;
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user