diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-18 23:46:24 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-18 23:46:24 +0000 |
commit | 1bc86936d90ea3b376047f8385e93023739a8576 (patch) | |
tree | 0e8796143cd45ccad096f569aa1d892293dc0e6e /daemon/manager.c | |
parent | 8aa2613760bbe766d53f3f4b0683c3920aeff005 (diff) |
Unregister interfaces on cleanup
Diffstat (limited to 'daemon/manager.c')
-rw-r--r-- | daemon/manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/manager.c b/daemon/manager.c index 7dbb7417..16447e59 100644 --- a/daemon/manager.c +++ b/daemon/manager.c @@ -94,7 +94,7 @@ static DBusHandlerResult default_adapter(DBusConnection *conn, static DBusMethodVTable manager_table[] = { { "ListAdapters", list_adapters, - DBUS_TYPE_INVALID_AS_STRING, DBUS_TYPE_ARRAY_AS_STRING }, + DBUS_TYPE_INVALID_AS_STRING, DBUS_TYPE_STRING_ARRAY_AS_STRING }, { "FindAdapter", find_adapter, DBUS_TYPE_STRING_AS_STRING, DBUS_TYPE_STRING_AS_STRING }, { "DefaultAdapter", default_adapter, @@ -122,6 +122,9 @@ void manager_exit(void) { info("Stopping manager interface"); + dbus_connection_unregister_interface(connection, + SYSTEM_PATH, MANAGER_INTERFACE); + dbus_connection_unref(connection); connection = NULL; |