mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Retry EXISTS after 20 seconds
This commit is contained in:
@@ -78,7 +78,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
private static final int PI_SEND = 1;
|
||||
private static final int RETRY_MAX = 3;
|
||||
private static final int CONNECTIVITY_DELAY = 5000; // milliseconds
|
||||
private static final long EXISTS_DELAY = 20 * 1000L; // milliseconds
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
@@ -706,13 +705,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
|
||||
// Check sent message
|
||||
if (sid != null) {
|
||||
try {
|
||||
// Some email servers are slow with adding sent messages
|
||||
Thread.sleep(EXISTS_DELAY);
|
||||
} catch (InterruptedException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user