From e57b702e8c5894a654cc2432758e084ff1d7a61b Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Thu, 5 Dec 2013 11:37:12 +0100 Subject: [PATCH] android: Fix sending status on bluetooth init if already initialized We should be sending BT_STATUS_DONE when calling init on already initialized interface like Bluedroid does. This indicates that previosly registered callbacks are still registered, not those passed with second init call. --- android/hal-bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 87d6fc760..7cac15c70 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -373,7 +373,7 @@ static int init(bt_callbacks_t *callbacks) DBG(""); if (interface_ready()) - return BT_STATUS_SUCCESS; + return BT_STATUS_DONE; bt_hal_cbacks = callbacks; -- 2.47.3