From 0030502690c4c6ab293d088245303c08cba66930 Mon Sep 17 00:00:00 2001 From: Aabed Khan <39409020+TheAabedKhan@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:02:53 +0545 Subject: [PATCH] fix: fixed update issue When a user clicks on cancel while downloading the update, managerUpdateProgress is closed. This results in completely canceling the Stream and that's why the user cannot download the update without re-launching the app. Closes #936 --- lib/services/revanced_api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/revanced_api.dart b/lib/services/revanced_api.dart index 11fa084cbb..d613a13218 100644 --- a/lib/services/revanced_api.dart +++ b/lib/services/revanced_api.dart @@ -140,7 +140,7 @@ class RevancedAPI { return null; } - StreamController managerUpdateProgress = StreamController(); + StreamController managerUpdateProgress = StreamController.broadcast(); void updateManagerDownloadProgress(int progress) { managerUpdateProgress.add(progress.toDouble());