Removed send delay

pull/184/head
M66B 4 years ago
parent 5cd57301c8
commit 8168875dd3

@ -78,7 +78,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "send");
private static final int PI_SEND = 1;
private static final long CONNECTIVITY_DELAY = 5000L; // milliseconds
private static final int RETRY_MAX = 3;
@Override
@ -316,14 +315,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
Log.w(ex);
}
// Wait for stabilization of connection
if (suitable)
try {
Thread.sleep(CONNECTIVITY_DELAY);
} catch (InterruptedException ex) {
Log.w(ex);
}
if (suitable)
owner.start();
else {

Loading…
Cancel
Save