Commit ff60b3c1 authored by Lorenz Meier's avatar Lorenz Meier

Fix application shutdown with XPlane HIL

parent 63a393b2
......@@ -267,8 +267,6 @@ void QGCXPlaneLink::run()
emit simulationDisconnected();
emit simulationConnected(false);
this->deleteLater();
}
void QGCXPlaneLink::setPort(int localPort)
......
......@@ -243,6 +243,8 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
UAS::~UAS()
{
stopHil();
// wait for the simulator to exit
simulation->wait();
simulation->deleteLater();
writeSettings();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment