Retry on compute exception

This commit is contained in:
M66B
2019-07-28 18:13:13 +02:00
parent 3e88be112d
commit 410170d6d6
2 changed files with 11 additions and 7 deletions

View File

@@ -93,8 +93,10 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
//throw new RuntimeException("Exception while computing database"
// + " live data.", e);
computed = false;
mInvalid.set(false);
break;
try {
Thread.sleep(5000L);
} catch (InterruptedException ignored) {
}
}
}
if (computed) {