[asterisk-commits] branch 1.2 r35669 -
/branches/1.2/apps/app_queue.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jun 23 04:30:18 MST 2006
Author: bweschke
Date: Fri Jun 23 06:30:17 2006
New Revision: 35669
URL: http://svn.digium.com/view/asterisk?rev=35669&view=rev
Log:
We should lock the queue before we go making changes to member interface statuses.
Modified:
branches/1.2/apps/app_queue.c
Modified: branches/1.2/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_queue.c?rev=35669&r1=35668&r2=35669&view=diff
==============================================================================
--- branches/1.2/apps/app_queue.c (original)
+++ branches/1.2/apps/app_queue.c Fri Jun 23 06:30:17 2006
@@ -3425,9 +3425,11 @@
} else
ast_log(LOG_WARNING, "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);
ql = q;
+ ast_mutex_unlock(&q->lock);
}
q = qn;
}
More information about the asterisk-commits
mailing list