Commit f528a643 authored by Don Gagne's avatar Don Gagne

Merge pull request #1675 from DonLakeFlyer/hilfix

Fix crash
parents ff60b3c1 f46b74d8
......@@ -243,9 +243,11 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
UAS::~UAS()
{
stopHil();
if (simulation) {
// 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