Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion plugins/io/win32/plugin-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ static void lcb_io_run_event_loop(struct lcb_io_opt_st *iops)
struct winsock_io_cookie *instance = iops->v.v0.cookie;
int nevents;
struct winsock_event *n;
struct winsock_event *next;

instance->event_loop = 1;
do {
Expand Down Expand Up @@ -391,7 +392,8 @@ static void lcb_io_run_event_loop(struct lcb_io_opt_st *iops)
}
}
} else {
for (n = instance->events; n != NULL; n = n->next) {
for (n = instance->events; n != NULL; n = next) {
next = n->next;
if (n->flags != 0) {
short flags = 0;

Expand Down