mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Sync : add timber log on sync failure
This commit is contained in:
parent
36d1d52880
commit
9477316b61
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ internal class SyncThread(private val syncTask: SyncTask,
|
|||
}
|
||||
|
||||
override fun onFailure(failure: Throwable) {
|
||||
Timber.e(failure)
|
||||
if (failure !is Failure.NetworkConnection) {
|
||||
// Wait 10s before retrying
|
||||
sleep(RETRY_WAIT_TIME_MS)
|
||||
|
|
Loading…
Reference in a new issue