Skip to content

Commit

Permalink
Removes AWS_FATAL_ASSERT in s_aws_event_loop_group_shutdown_async (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Sep 7, 2022
1 parent 4740b66 commit 442f923
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,14 @@ static void s_aws_event_loop_group_shutdown_async(struct aws_event_loop_group *e
struct aws_thread cleanup_thread;
AWS_ZERO_STRUCT(cleanup_thread);

AWS_FATAL_ASSERT(aws_thread_init(&cleanup_thread, el_group->allocator) == AWS_OP_SUCCESS);
aws_thread_init(&cleanup_thread, el_group->allocator);

struct aws_thread_options thread_options;
AWS_ZERO_STRUCT(thread_options);
thread_options.cpu_id = -1;
thread_options.join_strategy = AWS_TJS_MANAGED;

AWS_FATAL_ASSERT(
aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) ==
AWS_OP_SUCCESS);
aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options);
}

static struct aws_event_loop_group *s_event_loop_group_new(
Expand Down

0 comments on commit 442f923

Please sign in to comment.