diff --git a/source/s3_client.c b/source/s3_client.c index c1f2fcf7..87d9cb3f 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -529,7 +529,7 @@ struct aws_s3_client *aws_s3_client_new( /* Set up body streaming ELG */ { uint16_t num_event_loops = - (uint16_t)aws_array_list_length(&client->client_bootstrap->event_loop_group->event_loops); + (uint16_t)aws_event_loop_group_get_loop_count(client->client_bootstrap->event_loop_group); uint16_t num_streaming_threads = num_event_loops; if (num_streaming_threads < 1) {