OSDN Git Service

gdbus: Avoid reporting GDBusClient disconnect twice
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Wed, 2 Apr 2014 18:30:21 +0000 (15:30 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Apr 2014 07:40:22 +0000 (10:40 +0300)
commit77f87f24d58f337bcd950f1fcbc1e41b98beebda
treefe8bce63acd66e75c52e605a9478dcea63ca591c
parente985127b91331c97293ee063cb328c9e8fba9ea6
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