From ec0a04e89305004a1f321849b45c46224f7b4fe6 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 12 Jan 2021 10:45:18 +0100 Subject: [PATCH] timeout -> restart without delay --- .../android/sdk/internal/session/sync/job/SyncService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncService.kt index 16c4095654..a535a322f4 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncService.kt @@ -166,10 +166,10 @@ abstract class SyncService : Service() { } if (throwable is Failure.NetworkConnection) { // Timeout is not critical, so retry as soon as possible. - if (isInitialSync || throwable.cause is SocketTimeoutException) { - // For big accounts, computing init sync response can take time, but Synapse will cache the + if (throwable.cause is SocketTimeoutException) { + // For big accounts, computing sync response can take time, but Synapse will cache the // result for the next request. So keep retrying in loop - Timber.w("Timeout during initial sync, retry in loop") + Timber.w("Timeout during sync, retry in loop") doSync() return }