Skip to content

Commit 2c4ec2f

Browse files
committed
Catch COMException
1 parent 6fe0ac6 commit 2c4ec2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FlightStreamDeck.SimConnectFSX/SimConnectFlightConnector.cs

+4
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ void Simconnect_OnRecvOpen(SimConnect sender, SIMCONNECT_RECV_OPEN data)
521521
simconnect?.RequestDataOnSimObjectType(DATA_REQUESTS.TOGGLE_VALUE_DATA, DEFINITIONS.GenericData, 0, SIMCONNECT_SIMOBJECT_TYPE.USER);
522522
}
523523
}
524+
catch (COMException ex) when (ex.Message == "0xC00000B0")
525+
{
526+
// Ignore
527+
}
524528
finally
525529
{
526530
smGeneric.Release();

0 commit comments

Comments
 (0)