summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-08-21 21:34:58 +0000
committerjim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-08-21 21:34:58 +0000
commitbe09262c915dc615563ae10ab34f8ef9bc1b1249 (patch)
treecf4e9ce53afe010758763aa8ab1b8465ed8b1033
parent8239ad02390c0feec4c726160b7519f04caf25b9 (diff)
Fixed qevent() in zaptel.c so that it would hold the proper number of events
in the queue (not just 1 like it was). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@451 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xzaptel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index f394d24..062927c 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -639,7 +639,7 @@ static void __qevent(struct zt_chan *chan, int event)
if ((chan->eventoutidx == 0) && (chan->eventinidx == (ZT_MAX_EVENTSIZE - 1)))
return;
/* if full, ignore */
- if (chan->eventoutidx == (chan->eventinidx - 1)) return;
+ if (chan->eventinidx == (chan->eventoutidx - 1)) return;
/* save the event */
chan->eventbuf[chan->eventinidx++] = event;
/* wrap the index, if necessary */