Commit: 6d4e7785a46b069d6575092b2ce783b80b9e253c
Parent: 232fa391e39db4c2b58914f67d33c387c93e3260
Author: Henrique Dante de Almeida <hdante@profusion.mobi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-05-28 16:22:27
Tree: f6fd99f86ae970fc138461167f0d823b4f4e44d8

gdbus: Remove proxies when client disconnects Remove proxies and generate proxy_removed callbacks even when there are no corresponding InterfaceRemoved signals. This patch fixes having zombie gdbus proxy object when a server disconnects without sending InterfaceRemoved signals. These objects may interact with new server instances, for example, making InterfaceAdded signals of new objects with the same name be filtered out as duplicated, or staying allocated, but unused, if the new server doesn't reuse the object paths. Note that as a side-effect, the lifetime of a gdbus proxy becomes stricter: it lives at most for the duration of a single connection to a single instance of a server process.

Diffstat

M gdbus/client.c | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)

View Full Diff | Patch