[FSX/P3D] self adjusting timer for listener

P3D with remote connections caan be SLOW before running in a timeout
This commit is contained in:
Klaus Basan
2020-04-21 19:52:15 +02:00
committed by Mat Sutcliffe
parent 26bd157551
commit 2497e689af
2 changed files with 17 additions and 3 deletions

View File

@@ -667,6 +667,8 @@ namespace BlackSimPlugin
bool checkSimConnectDll() const;
private:
static constexpr int MinQueryIntervalMs = 5 * 1000; // 5 seconds
QTimer m_timer { this }; //!< timer, "this" is needed otherwise I get warnings when move to new thread
QString m_simulatorVersion;
QString m_simConnectVersion;