diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-10-17 18:31:50 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-10-17 18:31:50 +0200 |
commit | 0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead (patch) | |
tree | a49223e7d5f525b4b7eb664222c2a63869332e44 | |
parent | ae470f3badc8e832f21b946c82eec97e4104fd36 (diff) | |
download | connman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.tar.gz connman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.tar.bz2 connman-0fe3d5e4406c2c086a2fa3f5ae695d187eb03ead.zip |
Fix connection disconnect function
-rw-r--r-- | gdbus/mainloop.c | 4 |
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; |