From 947a39800fec73f98e7d94e1a50707cbc44b7373 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Tue, 4 Feb 2014 00:48:03 +0100 Subject: [PATCH] Abort possibly running Soup.session when extension is disabled. --- src/extension.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/extension.js b/src/extension.js index 1327a6d..74bc607 100644 --- a/src/extension.js +++ b/src/extension.js @@ -298,6 +298,11 @@ const WeatherMenuButton = new Lang.Class({ }, stop: function() { + if (_httpSession != undefined) + !httpSession.abort(); + + _httpSession = undefined; + if (this._timeoutCurrent) Mainloop.source_remove(this._timeoutCurrent);