diff options
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 5cbcc77c..c84b7c37 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -344,8 +344,9 @@ void hcid_dbus_exit(void) done: unregister_adapter_path(BASE_PATH); - dbus_connection_unref(conn); set_dbus_connection(NULL); + + dbus_connection_unref(conn); } int hcid_dbus_init(void) @@ -364,8 +365,6 @@ int hcid_dbus_init(void) set_dbus_connection(conn); - dbus_connection_unref(conn); - return 0; } |