diff options
| -rw-r--r-- | src/qcomm-hidl/AntHidlClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcomm-hidl/AntHidlClient.cpp b/src/qcomm-hidl/AntHidlClient.cpp index d41a319..fce47c4 100644 --- a/src/qcomm-hidl/AntHidlClient.cpp +++ b/src/qcomm-hidl/AntHidlClient.cpp @@ -203,11 +203,11 @@ void hci_close() { { ALOGE("%s: HIDL daemon is dead", __func__); } + std::unique_lock< std::mutex> lock(ant_hci.data_mtx); + ant_hci.data_cond.notify_all(); } ant_hci.state = ANT_RADIO_DISABLED; ant_rx_clear(); - std::unique_lock< std::mutex> lock(ant_hci.data_mtx); - ant_hci.data_cond.notify_all(); anthci =nullptr; ALOGI("%s: exit", __func__); } |
