mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #935, avoid issues when shutting down
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d475246941
commit
f34e80ea62
@@ -1356,7 +1356,7 @@ namespace BlackSimPlugin
|
||||
|
||||
void CSimulatorFsxCommonListener::checkConnection()
|
||||
{
|
||||
Q_ASSERT_X(sApp, Q_FUNC_INFO, "Missing sApp");
|
||||
if (this->isShuttingDown()) { return; }
|
||||
Q_ASSERT_X(!CThreadUtils::isCurrentThreadApplicationThread(), Q_FUNC_INFO, "Expect to run in background");
|
||||
HANDLE hSimConnect;
|
||||
HRESULT result = SimConnect_Open(&hSimConnect, sApp->swiftVersionChar(), nullptr, 0, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user