aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api.c b/src/api.c
index 970deab..04c3dc2 100644
--- a/src/api.c
+++ b/src/api.c
@@ -624,11 +624,11 @@ static gpointer bluez_handler_func(gpointer ptr)
ERROR("bluetooth_register_agent() failed");
goto err_no_agent;
}
- } else {
- // Let main process know initialization is done
- signal_init_done(id, TRUE);
}
+ // Let main process know initialization is done
+ signal_init_done(id, TRUE);
+
// Cannot reference id after this point
g_atomic_rc_box_release(id);