Minor cleanup in wakeup logic

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2006-04-02 20:11:55 +00:00
parent 6cfd28423c
commit 77a48c6266

View File

@@ -540,7 +540,7 @@ static void unuse_eventqent(struct eventqent *e)
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)