[polari/wip/fmuellner/flatpak-updates: 1/3] telepathyClient: Unregister on shutdown
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/flatpak-updates: 1/3] telepathyClient: Unregister on shutdown
- Date: Tue, 4 Dec 2018 17:47:50 +0000 (UTC)
commit 2feeb49e2e247537a12818c6f829a25e945870e2
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Nov 29 13:00:54 2018 +0100
telepathyClient: Unregister on shutdown
So far we simply keep the client registered, as it will eventually
drop off the bus anyway when the application exists. However we want
to allow replacing the running instance on updates, so we should free
up the name as early as possible to allow the new instance to take
over.
https://gitlab.gnome.org/GNOME/polari/merge_requests/80
src/telepathyClient.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 71b6bc8..18c0329 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -110,6 +110,7 @@ class TelepathyClient extends Tp.BaseClient {
this._app.connect('prepare-shutdown', () => {
[...this._pendingRequests.values()].forEach(r => { r.cancel(); });
[...this._pendingBotPasswords.keys()].forEach(a => { this._discardIdentifyPassword(a); });
+ this.unregister();
this._app.release();
});
this._app.hold();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]