gdbus: Avoid reporting GDBusClient disconnect twice
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Wed, 2 Apr 2014 18:30:21 +0000 (15:30 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 03:48:48 +0000 (05:48 +0200)
commit9aeea028edab0f7b93ef18ab1305bc21267e7ec9
tree0e7273eb6494302b41978d44b083d102664c4153
parent22e892a22e658ed316133c1e63a17160c735e5e5
gdbus: Avoid reporting GDBusClient disconnect twice

No matter if disconnection was reported previously, g_dbus_client_unref()
was always calling service disconnect callback. This patch fix the
following scenario:
1) service disconnects from the bus
2) disconnect callback gets called
3) client calls g_dbus_client_unref(), disconnect callback is called
   again.
gdbus/client.c