[svn-commits] trunk r35670 - in /trunk: ./ apps/app_queue.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 23 04:33:02 MST 2006


Author: bweschke
Date: Fri Jun 23 06:33:02 2006
New Revision: 35670

URL: http://svn.digium.com/view/asterisk?rev=35670&view=rev
Log:
Merged revisions 35669 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r35669 | bweschke | 2006-06-23 06:30:17 -0500 (Fri, 23 Jun 2006) | 3 lines

 We should lock the queue before we go making changes to member interface statuses.


........

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=35670&r1=35669&r2=35670&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Jun 23 06:33:02 2006
@@ -3746,8 +3746,10 @@
 			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;



More information about the svn-commits mailing list