mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +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);
|
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();
|
synchronizeTime();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user