summaryrefslogtreecommitdiffstats
path: root/daemon/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/manager.c')
-rw-r--r--daemon/manager.c5
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;