Cancel operations on out of memory

This commit is contained in:
M66B
2019-04-19 10:18:10 +02:00
parent 002077cc5a
commit 4c3ab7ee85
2 changed files with 4 additions and 2 deletions

View File

@@ -213,7 +213,8 @@ public class ServiceSend extends LifecycleService {
if (message != null)
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
if (ex instanceof MessageRemovedException ||
if (ex instanceof OutOfMemoryError ||
ex instanceof MessageRemovedException ||
ex instanceof SendFailedException ||
ex instanceof IllegalArgumentException) {
Log.w("Unrecoverable");