mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Retry on network failures during media message sends.
Fixes #4332 // FREEBIE
This commit is contained in:
parent
8d82033855
commit
d0e852f19f
@ -89,6 +89,8 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onShouldRetryThrowable(Exception exception) {
|
public boolean onShouldRetryThrowable(Exception exception) {
|
||||||
if (exception instanceof RequirementNotMetException) return true;
|
if (exception instanceof RequirementNotMetException) return true;
|
||||||
|
if (exception instanceof RetryLaterException) return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user