diff options
author | jim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-08-21 21:34:58 +0000 |
---|---|---|
committer | jim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-08-21 21:34:58 +0000 |
commit | be09262c915dc615563ae10ab34f8ef9bc1b1249 (patch) | |
tree | cf4e9ce53afe010758763aa8ab1b8465ed8b1033 | |
parent | 8239ad02390c0feec4c726160b7519f04caf25b9 (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-x | zaptel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |