From 73436b52768c3e34164880901555187ff647432f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 22 Jul 2020 18:22:38 +0200 Subject: [PATCH] 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 93873e287..71b1e35d7 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