Make simulator listeners safe against multiple starts

refs #909
This commit is contained in:
Roland Winklmeier
2017-03-25 18:57:57 +01:00
committed by Mathew Sutcliffe
parent 0eaab1753d
commit aafe211b5c
8 changed files with 45 additions and 23 deletions

View File

@@ -1334,7 +1334,7 @@ namespace BlackSimPlugin
connect(m_timer, &QTimer::timeout, this, &CSimulatorFsxCommonListener::checkConnection);
}
void CSimulatorFsxCommonListener::start()
void CSimulatorFsxCommonListener::startImpl()
{
m_simulatorVersion.clear();
m_simConnectVersion.clear();
@@ -1343,7 +1343,7 @@ namespace BlackSimPlugin
m_timer->start();
}
void CSimulatorFsxCommonListener::stop()
void CSimulatorFsxCommonListener::stopImpl()
{
m_timer->stop();
}

View File

@@ -295,12 +295,12 @@ namespace BlackSimPlugin
//! \copydoc BlackCore::ISimulatorListener::backendInfo
virtual QString backendInfo() const override;
public slots:
//! \copydoc BlackCore::ISimulatorListener::start
virtual void start() override;
protected:
//! \copydoc BlackCore::ISimulatorListener::startImpl
virtual void startImpl() override;
//! \copydoc BlackCore::ISimulatorListener::stop
virtual void stop() override;
//! \copydoc BlackCore::ISimulatorListener::stopImpl
virtual void stopImpl() override;
protected:
//! Test if connection can be established