every user can cancel the worker

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-10-30 12:07:37 +01:00 committed by Alper Öztürk
parent 043c8b390e
commit 5137bc6574

View file

@ -94,7 +94,7 @@ class InternalTwoWaySyncActivity : DrawerActivity(), Injectable {
private fun disableTwoWaySyncAndWorkers() {
lifecycleScope.launch(Dispatchers.IO) {
backgroundJobManager.cancelTwoWaySyncJob(user.get())
backgroundJobManager.cancelTwoWaySyncJob()
val folders = fileDataStorageManager.getInternalTwoWaySyncFolders(user.get())
folders.forEach { folder ->