From e821944a248ad81c4d10ec015d8ddd6a5a1ec5a3 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Mon, 28 Oct 2013 07:48:25 +0100 Subject: [PATCH] Fix timers in stop-method --- src/extension.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index eca0038..ebee080 100644 --- a/src/extension.js +++ b/src/extension.js @@ -264,8 +264,11 @@ const WeatherMenuButton = new Lang.Class({ }, stop: function() { - if (this._timeoutS) - Mainloop.source_remove(this._timeoutS); + if (this._timeoutCurrent) + Mainloop.source_remove(this._timeoutCurrent); + + if (this._timeoutForecast) + Mainloop.source_remove(this._timeoutForecast); if (this._settingsC) { this._settings.disconnect(this._settingsC);