[gnome-shell] ibusManager: Cancel the preload engines timeout on clear



commit 6a6d66486d3326457260f8d1e4b9937d9396c7c6
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Sep 25 22:15:38 2019 +0200

    ibusManager: Cancel the preload engines timeout on clear
    
    This is created when preloading but never cancelled if ibus disappears
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/743

 js/misc/ibusManager.js | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js
index 55e2fd97bd..e43f88c7ce 100644
--- a/js/misc/ibusManager.js
+++ b/js/misc/ibusManager.js
@@ -77,6 +77,11 @@ var IBusManager = class {
             this._cancellable = null;
         }
 
+        if (this._preloadEnginesId) {
+            GLib.source_remove(this._preloadEnginesId);
+            this._preloadEnginesId = 0;
+        }
+
         if (this._panelService)
             this._panelService.destroy();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]