Remove network constrait for periodically offline operation

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-08-15 10:36:53 +02:00
parent c8a6d819d3
commit 1af6b4b89f
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -41,7 +41,7 @@ class OfflineOperationsWorker(
"$jobName -----------------------------------\nOfflineOperationsWorker started\n-----------------------------------"
)
if (NetworkChangeReceiver.isNetworkAvailable(context)) {
if (!NetworkChangeReceiver.isNetworkAvailable(context)) {
Log_OC.d(TAG, "OfflineOperationsWorker cancelled, no internet connection.")
return Result.success()
}