summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 3aea1a89..5aadca01 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -730,8 +730,6 @@ int main(int argc, char *argv[])
/* Start event processor */
g_main_run(event_loop);
- g_main_unref(event_loop);
-
if (sdp)
stop_sdp_server();
@@ -739,6 +737,8 @@ int main(int argc, char *argv[])
hcid_dbus_exit();
+ g_main_unref(event_loop);
+
info("Exit");
stop_logging();