mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Faster retry on database compute exception
This commit is contained in:
parent
a947db12a9
commit
45a9f8cc5f
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
|
||||||
// + " live data.", e);
|
// + " live data.", e);
|
||||||
computed = false;
|
computed = false;
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000L);
|
Thread.sleep(3000L);
|
||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- /home/marcel/support/room/runtime/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-27 12:47:44.950985792 +0200
|
--- /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
|
@@ -89,8 +89,14 @@ class RoomTrackingLiveData<T> extends Li
|
||||||
try {
|
try {
|
||||||
value = mComputeFunction.call();
|
value = mComputeFunction.call();
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
+ // + " live data.", e);
|
+ // + " live data.", e);
|
||||||
+ computed = false;
|
+ computed = false;
|
||||||
+ try {
|
+ try {
|
||||||
+ Thread.sleep(5000L);
|
+ Thread.sleep(3000L);
|
||||||
+ } catch (InterruptedException ignored) {
|
+ } catch (InterruptedException ignored) {
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue