summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-10-17 18:31:50 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-10-17 18:31:50 +0200
commit0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead (patch)
treea49223e7d5f525b4b7eb664222c2a63869332e44 /gdbus
parentae470f3badc8e832f21b946c82eec97e4104fd36 (diff)
downloadconnman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.tar.gz
connman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.tar.bz2
connman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.zip
Fix connection disconnect function
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/mainloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index b50d83c0..d38bd637 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -60,7 +60,7 @@ struct server_info {
};
struct disconnect_data {
- void (*disconnect_cb)(void *);
+ GDBusWatchFunction disconnect_cb;
void *user_data;
};
@@ -72,8 +72,8 @@ static DBusHandlerResult disconnect_filter(DBusConnection *conn,
if (dbus_message_is_signal(msg,
DBUS_INTERFACE_LOCAL, "Disconnected") == TRUE) {
error("Got disconnected from the system message bus");
+ dc_data->disconnect_cb(conn, dc_data->user_data);
dbus_connection_unref(conn);
- dc_data->disconnect_cb(dc_data->user_data);
}
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;