diff --git a/src/plugins/simulator/fscommon/simulatorfscommon.cpp b/src/plugins/simulator/fscommon/simulatorfscommon.cpp index faba8d9eb..0d52c5ec7 100644 --- a/src/plugins/simulator/fscommon/simulatorfscommon.cpp +++ b/src/plugins/simulator/fscommon/simulatorfscommon.cpp @@ -81,8 +81,9 @@ namespace BlackSimPlugin // reset flags m_simPaused = false; + const bool r = CSimulatorPluginCommon::disconnectFrom(); this->emitSimulatorCombinedStatus(); - return CSimulatorPluginCommon::disconnectFrom(); + return r; } bool CSimulatorFsCommon::isFsuipcOpened() const diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp index 503f712fa..5e866f52b 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp @@ -122,7 +122,7 @@ namespace BlackSimPlugin bool CSimulatorFsxCommon::disconnectFrom() { if (!m_simConnected) { return true; } - m_simSimulating = false; // treat as stopped, just setting the flag here avoids overhead of on onSimStopped + m_simSimulating = false; // thread as stopped, just setting the flag here avoids overhead of on onSimStopped m_traceAutoUntilTs = -1; m_traceSendId = false; this->reset(); // mark as disconnected and reset all values