Retry EXISTS after 20 seconds

This commit is contained in:
M66B
2021-02-22 20:11:34 +01:00
parent 3fa597579d
commit d4c6648959
3 changed files with 51 additions and 11 deletions

View File

@@ -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();