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:
parent
848bf5cd41
commit
7062f7add3
1 changed files with 5 additions and 0 deletions
5
third-party/libevent/event.c
vendored
5
third-party/libevent/event.c
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue