1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 06:01:12 +00:00

Faster retry on database compute exception

This commit is contained in:
M66B 2019-07-29 07:27:57 +02:00
parent a947db12a9
commit 45a9f8cc5f
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
// + " live data.", e);
computed = false;
try {
Thread.sleep(5000L);
Thread.sleep(3000L);
} catch (InterruptedException ignored) {
}
}

View file

@ -1,5 +1,5 @@
--- /home/marcel/support/room/runtime/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-27 12:47:44.950985792 +0200
+++ app/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-28 18:06:23.373936158 +0200
+++ app/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-29 07:27:21.478734412 +0200
@@ -89,8 +89,14 @@ class RoomTrackingLiveData<T> extends Li
try {
value = mComputeFunction.call();
@ -11,7 +11,7 @@
+ // + " live data.", e);
+ computed = false;
+ try {
+ Thread.sleep(5000L);
+ Thread.sleep(3000L);
+ } catch (InterruptedException ignored) {
+ }
}