gdbus/client: Don't GetManagedObjects w/o handlers
authorArman Uguray <armansito@chromium.org>
Fri, 27 Feb 2015 08:16:24 +0000 (00:16 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2015 09:02:05 +0000 (10:02 +0100)
commit26a00f2f31225b9ec8564a9fc6c3987480e47e36
treefd476e844a89d921fc1c63de9e93a5305518a9f6
parentcede3700f7903e55361281c71b6ea56a08e4e3f7
gdbus/client: Don't GetManagedObjects w/o handlers

The client code currently issues GetManagedObjects if new handlers are
set via g_dbus_client_set_proxy_handlers. An application may set these
to NULL before unref'ing a client or to simply prevent further events.
Hence, there is no need to refresh objects or properties if all handlers
are NULL.
gdbus/client.c