mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
[FS9] Shutdown driver if connection to FSUIPC is lost
This commit is contained in:
committed by
Mat Sutcliffe
parent
ac90b3c069
commit
3e6b7b07f4
@@ -315,6 +315,12 @@ namespace BlackSimPlugin
|
||||
{
|
||||
updateOwnAircraftFromSimulator(fsuipcAircraft);
|
||||
}
|
||||
else
|
||||
{
|
||||
// FSUIPC read error means almost always that FS9 closed. Shutdown the driver.
|
||||
CLogMessage(this).debug() << "Lost connection to FSUIPC. Shutting down.";
|
||||
disconnectFrom();
|
||||
}
|
||||
synchronizeTime();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user