Retry on network failures during media message sends.

Fixes #4332
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-10-30 11:56:05 -07:00
parent 8d82033855
commit d0e852f19f

View File

@ -89,6 +89,8 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
@Override
public boolean onShouldRetryThrowable(Exception exception) {
if (exception instanceof RequirementNotMetException) return true;
if (exception instanceof RetryLaterException) return true;
return false;
}