mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Catch OOM on ROOM compute call
This commit is contained in:
parent
18d2428f8e
commit
1459e89ea5
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
|
|||
try {
|
||||
value = mComputeFunction.call();
|
||||
done = true;
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
if (++retry > 10)
|
||||
throw new RuntimeException(
|
||||
"Exception while computing database live data.", e);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
+ try {
|
||||
+ value = mComputeFunction.call();
|
||||
+ done = true;
|
||||
+ } catch (Exception e) {
|
||||
+ } catch (Throwable e) {
|
||||
+ if (++retry > 10)
|
||||
+ throw new RuntimeException(
|
||||
+ "Exception while computing database live data.", e);
|
||||
|
|
Loading…
Reference in a new issue