mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +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)
|
||||
{
|
||||
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());
|
||||
QString modelString;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user