Skip to content

Conversation

@joshuatam
Copy link
Contributor

Description

Please explain the changes you made here.

Checklist

  • Code compiles correctly
  • All tests passing
  • Samples run successfully
  • Extended the README / documentation, if necessary

LossyDragon and others added 9 commits December 30, 2025 11:40
correct log level on canceled chunkProcessingJob
Prevents unnecessary logging of chunk processing job cancellation in non-debug mode.

This change reduces log clutter by only logging the cancellation of the chunk processing job when the debug flag is enabled.
Moves the `finishDepotDownload` call to after all depots have been processed.

This resolves a race condition where the download completion logic could be triggered before all files were fully downloaded, leading to incomplete or corrupted downloads.
Ensures that the onDownloadCompleted event is notified on the main thread to prevent potential race conditions when updating the UI or other thread-sensitive components. Also, handles the case where the AppItem is not found gracefully.
Moves the listener notification to an IO dispatcher to avoid potential race conditions when listeners perform long-running operations.
@joshuatam joshuatam closed this Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants