Fire timers after handling fd's (timers may free fd-handles)
This commit is contained in:
parent
c5d551bd21
commit
1718028a36
1 changed files with 2 additions and 2 deletions
|
@ -214,8 +214,6 @@ dispatcher(void)
|
|||
n = epoll_wait(epoll_fd, events, EPOLL_FDS_PER_ROUND, stimer_next());
|
||||
|
||||
time(&dispatch_clock);
|
||||
stimer_dispatch(dispatch_clock);
|
||||
|
||||
|
||||
for(i = 0; i < n; i++) {
|
||||
e = events[i].data.ptr;
|
||||
|
@ -232,4 +230,6 @@ dispatcher(void)
|
|||
|
||||
e->opaque, e->fd);
|
||||
}
|
||||
|
||||
stimer_dispatch(dispatch_clock);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue