Diff between de10a3d060596b575c2e30b7b2b0cdc169ead03b and 3adac8d71583170d14a2f72e101b9d12a253f9e4
Changed Files
| File | Additions | Deletions | Status |
| android/hal-ipc.c | +5 | -1 | modified |
Full Patch
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index 2d58038..a7948a6 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -204,7 +204,11 @@ bool hal_ipc_init(void)
}
/* Start Android Bluetooth daemon service */
- property_set("ctl.start", SERVICE_NAME);
+ if (property_set("ctl.start", SERVICE_NAME) < 0) {
+ error("Failed to start service %s", SERVICE_NAME);
+ close(sk);
+ return false;
+ }
cmd_sk = accept_connection(sk);
if (cmd_sk < 0) {