mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
timeout -> restart without delay
This commit is contained in:
parent
8307245120
commit
ec0a04e893
1 changed files with 3 additions and 3 deletions
|
@ -166,10 +166,10 @@ abstract class SyncService : Service() {
|
||||||
}
|
}
|
||||||
if (throwable is Failure.NetworkConnection) {
|
if (throwable is Failure.NetworkConnection) {
|
||||||
// Timeout is not critical, so retry as soon as possible.
|
// Timeout is not critical, so retry as soon as possible.
|
||||||
if (isInitialSync || throwable.cause is SocketTimeoutException) {
|
if (throwable.cause is SocketTimeoutException) {
|
||||||
// For big accounts, computing init sync response can take time, but Synapse will cache the
|
// For big accounts, computing sync response can take time, but Synapse will cache the
|
||||||
// result for the next request. So keep retrying in loop
|
// 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()
|
doSync()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue