[asterisk-commits] mmichelson: trunk r117794 - /trunk/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 22 11:05:29 CDT 2008
Author: mmichelson
Date: Thu May 22 11:05:18 2008
New Revision: 117794
URL: http://svn.digium.com/view/asterisk?view=rev&rev=117794
Log:
Committing a fix pointed out by Atis Lezdins on the asterisk-dev list. Thanks!
Modified:
trunk/apps/app_queue.c
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=117794&r1=117793&r2=117794
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu May 22 11:05:18 2008
@@ -3943,12 +3943,15 @@
ao2_ref(mem, -1);
}
}
+
+ if (!ast_strlen_zero(queuename) && !strcasecmp(queuename, q->name)) {
+ ao2_unlock(q);
+ queue_unref(q);
+ break;
+ }
+
ao2_unlock(q);
queue_unref(q);
-
- if (!ast_strlen_zero(queuename) && found) {
- break;
- }
}
return found ? RESULT_SUCCESS : RESULT_FAILURE;
More information about the asterisk-commits
mailing list