[asterisk-commits] dvossel: branch 1.4 r232444 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 2 13:03:06 CST 2009


Author: dvossel
Date: Wed Dec  2 13:03:01 2009
New Revision: 232444

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232444
Log:
fixes app_queue ao2 error

(closes issue #16369)
Reported by: vrban
Patches:
      queue_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel


Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=232444&r1=232443&r2=232444
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Wed Dec  2 13:03:01 2009
@@ -1947,7 +1947,7 @@
 
 		ao2_lock(qe->parent);
 		qe->parent->rrpos++;
-		ao2_unlock(&qe->parent);
+		ao2_unlock(qe->parent);
 
 		(*busies)++;
 		return 0;
@@ -2173,7 +2173,7 @@
 		qe->parent->name, qe->chan->uniqueid, qe->pos, qe->opos, (int)(time(NULL) - qe->start));
 
 	qe->parent->callsabandoned++;
-	ao2_unlock(&qe->parent);
+	ao2_unlock(qe->parent);
 }
 
 /*! \brief RNA == Ring No Answer. Common code that is executed when we try a queue member and they don't answer. */




More information about the asterisk-commits mailing list