Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 10, 2025
1 parent 81e91a8 commit cc8c865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/s3_tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -2521,7 +2521,12 @@ int aws_test_s3_copy_object_from_x_amz_copy_source(
aws_mutex_clean_up(&test_data.mutex);
aws_http_message_destroy(message);
client = aws_s3_client_release(client);

aws_s3_tester_wait_for_client_shutdown(tester);
tester->bound_to_client = false;
aws_s3_tester_lock_synced_data(tester);
tester->synced_data.client_shutdown = false;
aws_s3_tester_unlock_synced_data(tester);

return 0;
}
Expand Down

0 comments on commit cc8c865

Please sign in to comment.