Skip to content

Commit

Permalink
Fix race condition, fix pulse error code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Sep 20, 2024
1 parent 2bddf95 commit dd34f87
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/qnx/ionotify_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,7 @@ static void s_update_io_result(
ionotify_io_op_results->handle = handle;
memcpy(&ionotify_io_op_results->io_op_result, io_op_result, sizeof(struct aws_io_handle_io_op_result));
aws_task_init(task, s_update_io_result_task, ionotify_io_op_results, "ionotify_event_loop_resubscribe_ct");
struct ionotify_loop *ionotify_loop = event_loop->impl_data;
aws_task_scheduler_schedule_now(&ionotify_loop->scheduler, task);
s_schedule_task_now(event_loop, task);
return;
}

Expand Down Expand Up @@ -909,9 +908,6 @@ static void s_process_pulse(
(void *)event_loop,
pulse->code,
ionotify_event_data->event.sigev_code);
if (pulse->code != IO_EVENT_PULSE_SIGEV_CODE) {
event_mask |= AWS_IO_EVENT_TYPE_ERROR;
}
}

if (ionotify_event_data->latest_io_event_types == AWS_IO_EVENT_TYPE_CLOSED) {
Expand Down

0 comments on commit dd34f87

Please sign in to comment.