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

Fix crash when getOnGoingDownloads is called early #595

Merged
merged 1 commit into from
Nov 26, 2023
Merged

Conversation

mohamede1945
Copy link
Collaborator

Sometimes DownloadManager.getOnGoingDownloads may be called earlier than DownloadManager.start. This result in a crash.

This change ensures that getOnGoingDownloads awaits the initialization.

Sometimes `DownloadManager.getOnGoingDownloads` may be called earlier
than `DownloadManager.start`. This result in a crash.

This change ensures that getOnGoingDownloads awaits the initialization.
Copy link

codecov bot commented Nov 26, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4f1a562) 42.04% compared to head (b9d4088) 42.16%.

Files Patch % Lines
...urces/Downloader/DownloadBatchDataController.swift 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #595      +/-   ##
==========================================
+ Coverage   42.04%   42.16%   +0.12%     
==========================================
  Files         499      500       +1     
  Lines       19372    19420      +48     
==========================================
+ Hits         8144     8189      +45     
- Misses      11228    11231       +3     

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

@mohamede1945 mohamede1945 merged commit 4d35452 into main Nov 26, 2023
2 checks passed
@mohamede1945 mohamede1945 deleted the afifi branch November 26, 2023 20:13
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.

1 participant