diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index d5a06f8aeb..4a53c8d1fd 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -1673,6 +1673,7 @@ void switch_core_sqldb_stop(void) switch_queue_push(sql_manager.sql_queue[0], NULL); switch_queue_push(sql_manager.sql_queue[1], NULL); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Waiting for unfinished SQL transactions\n"); + switch_thread_cond_broadcast(sql_manager.cond); } sql_manager.thread_running = -1;