[gnome-shell] dbusService: Queue shutdown check on startup



commit 73436b52768c3e34164880901555187ff647432f
Author: Jonas Ådahl <jadahl gmail com>
Date:   Wed Jul 22 18:22:38 2020 +0200

    dbusService: Queue shutdown check on startup
    
    If something started the service, but crashed before managing to make a
    method call, we'd end up with the service running indefinitely. Fix this
    by queueing a shutdown check immediately on startup.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1372

 js/dbusServices/dbusService.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/dbusServices/dbusService.js b/js/dbusServices/dbusService.js
index 93873e2874..71b1e35d7e 100644
--- a/js/dbusServices/dbusService.js
+++ b/js/dbusServices/dbusService.js
@@ -25,6 +25,8 @@ var ServiceImplementation = class {
 
         // subclasses may override this to disable automatic shutdown
         this._autoShutdown = true;
+
+        this._queueShutdownCheck();
     }
 
     // subclasses may override this to own additional names


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