gdbus: Don't refresh objects/props if disconnected
authorArman Uguray <armansito@chromium.org>
Sat, 21 Feb 2015 01:56:47 +0000 (17:56 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 22 Feb 2015 18:42:25 +0000 (19:42 +0100)
commit8660527b11143f83fc4b4f891fab688996c3ee55
treee13806a967ca151755749d04575e2dabfb0dddf7
parentd6bc91ebfc1022bb382b1dc94240b103cfdd6dfd
gdbus: Don't refresh objects/props if disconnected

If g_dbus_client_set_proxy_handlers gets called from within a
proxy_removed callback, the code may end up refreshing the proxy's
properties and incorrectly access the client's proxy_list as it gets
freed. This patch fixes this, so that get_managed_objects does nothing
if it gets called during a service disconnect.
gdbus/client.c