[svn-commits] trunk r16975 - /trunk/manager.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Apr 2 13:11:56 MST 2006


Author: markster
Date: Sun Apr  2 15:11:55 2006
New Revision: 16975

URL: http://svn.digium.com/view/asterisk?rev=16975&view=rev
Log:
Minor cleanup in wakeup logic

Modified:
    trunk/manager.c

Modified: trunk/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/manager.c?rev=16975&r1=16974&r2=16975&view=diff
==============================================================================
--- trunk/manager.c (original)
+++ trunk/manager.c Sun Apr  2 15:11:55 2006
@@ -540,7 +540,7 @@
 	int val;
 	ast_mutex_lock(&e->lock);
 	e->usecount--;
-	val = e->usecount && e->next;
+	val = !e->usecount && e->next;
 	ast_mutex_unlock(&e->lock);
 	/* Wake up sleeping beauty */
 	if (val)



More information about the svn-commits mailing list