From 1e0e4dfde28e86018a334de53dd5c1349370e099 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sun, 19 Jan 2014 20:09:10 +0100 Subject: [PATCH] android/bluetooth: Fix sending device prop change event with no props --- android/bluetooth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 17a8deff0..505d5a7d2 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1064,7 +1064,8 @@ static void update_found_device(const bdaddr_t *bdaddr, uint8_t bdaddr_type, (*num_prop)++; } - ipc_send_notif(HAL_SERVICE_ID_BLUETOOTH, opcode, size, buf); + if (*num_prop) + ipc_send_notif(HAL_SERVICE_ID_BLUETOOTH, opcode, size, buf); if (confirm) { char addr[18]; -- 2.47.3