Skip to content

Commit

Permalink
Check for cancel earlier in file download process (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix authored Jul 15, 2024
1 parent 7818ba1 commit ed6ec6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ namespace Aws

void TransferManager::DoDownload(const std::shared_ptr<TransferHandle>& handle)
{
if (!InitializePartsForDownload(handle))
if (!handle->ShouldContinue() || !InitializePartsForDownload(handle))
{
return;
}
Expand Down

0 comments on commit ed6ec6c

Please sign in to comment.