mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Small cleanup
This commit is contained in:
parent
b6218d086d
commit
5eda8a84d0
1 changed files with 2 additions and 4 deletions
|
@ -173,11 +173,9 @@ internal class SyncThread @Inject constructor(private val syncTask: SyncTask,
|
|||
if (state !is SyncState.Running) {
|
||||
updateStateTo(SyncState.Running(afterPause = true))
|
||||
}
|
||||
// No timeout after a pause
|
||||
val timeout = when {
|
||||
previousSyncResponseHasToDevice -> 0L
|
||||
.also { Timber.tag(loggerTag.value).d("Force timeout to 0") }
|
||||
state.let { it is SyncState.Running && it.afterPause } -> 0L
|
||||
previousSyncResponseHasToDevice -> 0L /* Force timeout to 0 */
|
||||
state.let { it is SyncState.Running && it.afterPause } -> 0L /* No timeout after a pause */
|
||||
else -> DEFAULT_LONG_POOL_TIMEOUT
|
||||
}
|
||||
Timber.tag(loggerTag.value).d("Execute sync request with timeout $timeout")
|
||||
|
|
Loading…
Add table
Reference in a new issue