Ref T786, make sure pending requests can time out and are removed

Avoid one broken requests blocks everything
This commit is contained in:
Klaus Basan
2020-04-19 15:49:07 +02:00
committed by Mat Sutcliffe
parent 055ecbc022
commit 9430bb55cb
2 changed files with 43 additions and 6 deletions

View File

@@ -76,11 +76,13 @@ namespace BlackCore
bool loadWeatherDataPlugins();
void fetchNextWeatherData();
void fetchNextWeatherDataDeferred();
void appendRequest(const WeatherRequest &request);
void handleNextRequest();
CPluginManagerWeatherData m_pluginManagerWeatherData { this };
QVector<IWeatherData *> m_weatherDataPlugins;
QVector<WeatherRequest> m_pendingRequests;
qint64 m_lastPendingRequestTs = -1;
BlackMisc::Weather::CWeatherGrid m_weatherGrid;
bool m_isWeatherClear = false;
};