diff options
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index c85be14ce..2153e04be 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3746,8 +3746,10 @@ static void reload_queues(void) else ast_log(LOG_DEBUG, "XXX Leaking a little memory :( XXX\n"); } else { + ast_mutex_lock(&q->lock); for (cur = q->members; cur; cur = cur->next) cur->status = ast_device_state(cur->interface); + ast_mutex_unlock(&q->lock); } } AST_LIST_TRAVERSE_SAFE_END; |