Skip to content

Commit

Permalink
Do not dispose after a download has been completed for now, as it was…
Browse files Browse the repository at this point in the history
… causing issue in listeners still listenting
  • Loading branch information
nabil6391 committed Aug 25, 2022
1 parent f0a253f commit 2a1cb7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/downloader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class DownloadManager {
}

void disposeNotifiers(DownloadTask task) {
task.status.dispose();
task.progress.dispose();
// task.status.dispose();
// task.progress.dispose();
}

void setStatus(DownloadTask? task, DownloadStatus status) {
Expand Down Expand Up @@ -315,7 +315,7 @@ class DownloadManager {
}
});

return completer.future;
return completer.future.timeout(timeout);
}

void _startExecution() async {
Expand Down

0 comments on commit 2a1cb7c

Please sign in to comment.