[svn-commits] oej: branch oej/lapsang-queue-shared-lastcall-1.4 r370053 - /team/oej/lapsang...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 13 07:59:43 CDT 2012


Author: oej
Date: Fri Jul 13 07:59:37 2012
New Revision: 370053

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370053
Log:
Name spaces don't blend. Not all all.

Modified:
    team/oej/lapsang-queue-shared-lastcall-1.4/apps/app_queue.c

Modified: team/oej/lapsang-queue-shared-lastcall-1.4/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/lapsang-queue-shared-lastcall-1.4/apps/app_queue.c?view=diff&rev=370053&r1=370052&r2=370053
==============================================================================
--- team/oej/lapsang-queue-shared-lastcall-1.4/apps/app_queue.c (original)
+++ team/oej/lapsang-queue-shared-lastcall-1.4/apps/app_queue.c Fri Jul 13 07:59:37 2012
@@ -2652,15 +2652,15 @@
 	
 	if (shared_lastcall) {
 		AST_LIST_LOCK(&queues);
-		AST_LIST_TRAVERSE(&queues, q, list) {
-			ao2_lock(q);
-			if ((mem = ao2_find(q->members, member, OBJ_POINTER))) {
+		AST_LIST_TRAVERSE(&queues, qc, list) {
+			ao2_lock(qc);
+			if ((mem = ao2_find(qc->members, member, OBJ_POINTER))) {
 				time(&mem->lastcall);
 				mem->calls++;
 				mem->lastqueue = q;
 				ao2_ref(mem, -1);
 			}
-			ao2_unlock(q);
+			ao2_unlock(qc);
 		}
 		AST_LIST_UNLOCK(&queues);
 	} else {
@@ -2675,7 +2675,6 @@
 	if (callcompletedinsl) {
 		q->callscompletedinsl++;
 	}
-
 	ao2_unlock(q);
 	return 0;
 }




More information about the svn-commits mailing list