Address #829 - Set state->event inside linked list traversal for epoll.

This commit is contained in:
Calvin Rose 2021-10-08 08:35:47 -05:00
parent 980f55ff69
commit 3b1d787fbe
1 changed files with 1 additions and 1 deletions

View File

@ -1511,8 +1511,8 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp timeout) {
JanetStream *stream = p;
int mask = events[i].events;
JanetListenerState *state = stream->state;
state->event = events + i;
while (NULL != state) {
state->event = events + i;
JanetListenerState *next_state = state->_next;
JanetAsyncStatus status1 = JANET_ASYNC_STATUS_NOT_DONE;
JanetAsyncStatus status2 = JANET_ASYNC_STATUS_NOT_DONE;