fix: Sentry312134...

This commit is contained in:
曾祥俊
2023-07-13 15:35:48 +08:00
parent c8ed126605
commit 0e33abebdd

View File

@ -951,11 +951,9 @@ public class DownloadManager implements DownloadStatusListener {
* 立马通知 dataWatcher 更新下载任务状态
*/
private void notifyDownloadStatusASAP(DataWatcher dataWatcher) {
AppExecutor.getIoExecutor().execute(() -> {
for (DownloadEntity downloadEntity : getAllDownloadEntitySnapshots()) {
AppExecutor.getUiExecutor().execute(() -> dataWatcher.onDataInit(downloadEntity));
}
});
for (DownloadEntity downloadEntity : getAllDownloadEntitySnapshots()) {
dataWatcher.onDataInit(downloadEntity);
}
}
/**