Fix timers in stop-method

openweathermap_3.6
Jens Lody 11 years ago
parent 49e4ec8105
commit e821944a24
  1. 7
      src/extension.js

@ -264,8 +264,11 @@ const WeatherMenuButton = new Lang.Class({
}, },
stop: function() { stop: function() {
if (this._timeoutS) if (this._timeoutCurrent)
Mainloop.source_remove(this._timeoutS); Mainloop.source_remove(this._timeoutCurrent);
if (this._timeoutForecast)
Mainloop.source_remove(this._timeoutForecast);
if (this._settingsC) { if (this._settingsC) {
this._settings.disconnect(this._settingsC); this._settings.disconnect(this._settingsC);

Loading…
Cancel
Save