Fixed duplicate sends

This commit is contained in:
M66B 2020-05-04 10:02:35 +02:00
parent 6646fb4567
commit 49c8e3c1c6
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ public class ServiceSend extends ServiceBase {
private PowerManager.WakeLock wlOutbox;
private TwoStateOwner owner = new TwoStateOwner("send");
private ExecutorService executor = Helper.getBackgroundExecutor(1, "send");
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "send");
private static final int PI_SEND = 1;
private static final long CONNECTIVITY_DELAY = 5000L; // milliseconds