ensure that cancelled uploads are really getting cancelled (#5367)

This commit is contained in:
Ritika Pahwa 2023-10-29 19:51:16 +05:30 committed by GitHub
parent 6166fde7cd
commit 39a2fbe3d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 15 deletions

View file

@ -141,6 +141,11 @@ public class CommonsApplication extends MultiDexApplication {
*/
public static Map<String, Boolean> pauseUploads = new HashMap<>();
/**
* In-memory list of uploads that have been cancelled by the user
*/
public static HashSet<String> cancelledUploads = new HashSet<>();
/**
* Used to declare and initialize various components and dependencies
*/