mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Fix for stalled retries.
This commit is contained in:
parent
20fd881613
commit
ce710b378f
2 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,6 @@ import org.whispersystems.textsecure.crypto.MasterSecret;
|
|||
import ws.com.google.android.mms.MmsException;
|
||||
import ws.com.google.android.mms.pdu.SendReq;
|
||||
|
||||
import static org.thoughtcrime.securesms.database.SmsDatabase.Status;
|
||||
|
||||
public class MmsSender {
|
||||
|
||||
private final Context context;
|
||||
|
|
|
@ -94,6 +94,7 @@ public class SmsSender {
|
|||
DatabaseFactory.getSmsDatabase(context).markAsSentFailed(messageId);
|
||||
} catch (RetryLaterException rle) {
|
||||
Log.w("SmsSender", rle);
|
||||
DatabaseFactory.getSmsDatabase(context).markAsOutbox(messageId);
|
||||
if (systemStateListener.isConnected()) scheduleQuickRetryAlarm();
|
||||
else systemStateListener.registerForConnectivityChange();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue