mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
5ec91ea89d
Previously, clicking cancel only updated the task status but didn't stop the actual file transfer operations. The transferFile and transferDirectory functions would continue running. Changes: - Add cancelledTasksRef to track cancelled task IDs - Check cancellation status at start of transferFile/transferDirectory - Check cancellation status during directory iteration - Add cancelled task ID to ref in cancelTransfer - Handle cancellation errors gracefully in processTransfer - Clean up cancelled IDs after 5s delay Now cancelling a folder transfer actually stops the operation. Co-Authored-By: Claude <noreply@anthropic.com>