diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-02-26 06:20:08 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-02-26 06:20:08 -0800 |
commit | 331108b7103b252c9d41c210a6872b29743dc8f4 (patch) | |
tree | 59a5e7571d73141f3a3a91586c828d61175d719d | |
parent | 15d55328a5fb910fa85ce89fd5c1a7a3c145fc74 (diff) | |
parent | 5b1ce4753babf2985a863d8413c36be22065cba1 (diff) | |
download | android_system_bt-331108b7103b252c9d41c210a6872b29743dc8f4.tar.gz android_system_bt-331108b7103b252c9d41c210a6872b29743dc8f4.tar.bz2 android_system_bt-331108b7103b252c9d41c210a6872b29743dc8f4.zip |
Merge "Bluetooth: Enforce BT state check during GATT operations."
-rw-r--r-- | btif/src/btif_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c index 107755873..d9f36a2af 100644 --- a/btif/src/btif_core.c +++ b/btif/src/btif_core.c @@ -318,11 +318,13 @@ static void bt_jni_msg_ready(void *context) { void btif_sendmsg(void *p_msg) { - thread_post(bt_jni_workqueue_thread, bt_jni_msg_ready, p_msg); + if(bt_jni_workqueue_thread != NULL) + thread_post(bt_jni_workqueue_thread, bt_jni_msg_ready, p_msg); } void btif_thread_post(thread_fn func, void *context) { - thread_post(bt_jni_workqueue_thread, func, context); + if(bt_jni_workqueue_thread != NULL) + thread_post(bt_jni_workqueue_thread, func, context); } static bool fetch_vendor_addr (bt_bdaddr_t *local_addr) |