Skip to content

Commit

Permalink
TODO: removeme
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermartin committed Apr 10, 2024
1 parent df29149 commit cda0a73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbus/gattlib_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ static void _wait_scan_loop_stop_scanning(gattlib_adapter_t* gattlib_adapter) {
g_mutex_lock(&m_gattlib_signal.mutex);
while (gattlib_adapter_is_scanning(gattlib_adapter)) {
g_cond_wait(&m_gattlib_signal.condition, &m_gattlib_signal.mutex);
GATTLIB_LOG(GATTLIB_ERROR, "---- _wait_scan_loop_stop_scanning WAKE UP");

#ifdef DEBUG
gattlib_adapter_dump_state(gattlib_adapter);
#endif
}
g_mutex_unlock(&m_gattlib_signal.mutex);
}
Expand Down

0 comments on commit cda0a73

Please sign in to comment.