mirror of
https://github.com/janet-lang/janet
synced 2025-02-04 03:09:10 +00:00
Address #829 - Set state->event inside linked list traversal for epoll.
This commit is contained in:
parent
980f55ff69
commit
3b1d787fbe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user