From d052d527746c94e82f6498dffb810f47c35692ec Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 11 Sep 2015 06:51:38 +0200 Subject: [PATCH] Only invalidate data onreconnection, if we had a refresh-timeout already. --- src/extension.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 786e391..e8df4cf 100644 --- a/src/extension.js +++ b/src/extension.js @@ -408,8 +408,14 @@ const OpenweatherMenuButton = new Lang.Class({ // Main.notifyError(title, err.message); log(title + '\n' + err.message); } - if (this._connected) + + if (this._connected) { + if (!this._timeoutForecast) + this.forecastWeatherCache = undefined; + if (!this._timeoutCurrent) + this.currentWeatherCache = undefined; this.parseWeatherCurrent(); + } }, locationChanged: function() {