diff options
author | Mark Spencer <markster@digium.com> | 2006-04-02 20:11:55 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-04-02 20:11:55 +0000 |
commit | 77a48c62665320affb60fe1d57d2ff4939689f46 (patch) | |
tree | a344efca079216bc4c94832dad19bbc504cad173 | |
parent | 6cfd28423c1858330c8718fbfd8d83dab5108bd9 (diff) |
Minor cleanup in wakeup logic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |