mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-23 08:10:15 +01:00
Sync : add timber log on sync failure
This commit is contained in:
parent
36d1d52880
commit
9477316b61
@ -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 New Issue
Block a user