1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk libevent) #2416 - trying to find a new way for exiva to crash

This commit is contained in:
Charles Kerr 2010-01-17 04:25:50 +00:00
parent 848bf5cd41
commit 7062f7add3

View file

@ -999,7 +999,12 @@ event_queue_insert(struct event_base *base, struct event *ev, int queue)
TAILQ_INSERT_TAIL(&base->eventqueue, ev, ev_next);
break;
case EVLIST_ACTIVE:
assert(base->event_count_active >= 0);
base->event_count_active++;
assert(0 <= ev->ev_pri);
assert(ev->ev_pri < base->nactivequeues);
assert(base->nactivequeues == 1);
assert(ev->ev_pri == 0);
TAILQ_INSERT_TAIL(base->activequeues[ev->ev_pri],
ev,ev_active_next);
break;