Skip to content

Conversation

@joshuatam
Copy link

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.

Description

Please explain the changes you made here.

Checklist

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

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.
Adds an option to control whether the DepotDownloader
automatically starts downloading items after initialization.

This allows for more control over the download process,
especially in scenarios where additional configuration
or setup is required before starting the download.

Removes the manual call to startDownloading() in the
example application as it's now handled automatically
by default.
@joshuatam joshuatam changed the title Adds debug check for chunk cancellation log Update dd-logs Jan 2, 2026
@LossyDragon LossyDragon merged commit 1dbeece into LossyDragon:dd-logs 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