Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Input dispatching timed out at DownloadMonitorService.cancelDownload. #4126

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

MohitMaliFtechiz
Copy link
Collaborator

Fixes #4125

  • Moved the cancel download logic to the IO thread, ensuring that download-related tasks are performed on the IO thread while keeping the main thread free.
  • Also moved the functionality to the IO thread for checking the status when we receive the ACTION_DOWNLOAD_COMPLETE broadcast from DownloadManager, to determine if the download was successful or canceled. This ensures it doesn't block the main thread, as cancelDownload is currently causing a blockage.

@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft December 9, 2024 12:50
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.93%. Comparing base (4d3c878) to head (7edb656).
Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4126      +/-   ##
============================================
+ Coverage     58.77%   58.93%   +0.16%     
- Complexity     1566     1576      +10     
============================================
  Files           316      316              
  Lines         13477    13481       +4     
  Branches       1716     1716              
============================================
+ Hits           7921     7945      +24     
+ Misses         4419     4403      -16     
+ Partials       1137     1133       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as ready for review December 9, 2024 13:35
…ownload`.

* Moved the cancel download logic to the IO thread, ensuring that download-related tasks are performed on the IO thread while keeping the main thread free.
* Also moved the functionality to the IO thread for checking the status when we receive the ACTION_DOWNLOAD_COMPLETE broadcast from DownloadManager, to determine if the download was successful or canceled. This ensures it doesn't block the main thread, as cancelDownload is currently causing a blockage.
@kelson42 kelson42 merged commit accc0b0 into main Dec 10, 2024
19 of 20 checks passed
@kelson42 kelson42 deleted the Fixes#4125 branch December 10, 2024 05:26
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.

Input dispatching timed out at DownloadMonitorService.cancelDownload
3 participants