You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyncAdapterService should cancel onPerformSync (but not the actual synchronization) when the sync framework requests cancellation by calling onSyncCanceled.
SyncAdapterService should cancel
onPerformSync
(but not the actual synchronization) when the sync framework requests cancellation by callingonSyncCanceled
.We have a variable for that:
davx5-ose/app/src/main/kotlin/at/bitfire/davdroid/sync/SyncAdapterServices.kt
Lines 64 to 73 in 3776b50
It's set to
true
when the sync framework requests cancellation, but it doesn't do anything. It should causeonPerformSync
to cancel.Probably we need to create a
CoroutineScope
(MainScope
?) and cancel this scope instead, like in this example.Also, this code comment seems wrong:
We don't check periodically, but use
getWorkInfosForUniqueWorkFlow
.The text was updated successfully, but these errors were encountered: