Made update execution more random

This commit is contained in:
Kai Zimmermann
2016-03-03 10:16:19 +01:00
parent b7f94891a4
commit cfe8375577

View File

@@ -63,7 +63,7 @@ public class DeviceSimulatorUpdater {
device.setSwversion(swVersion);
eventbus.post(new InitUpdate(device));
threadPool.schedule(new DeviceSimulatorUpdateThread(device, spSenderService, actionId, eventbus, callback),
2000, TimeUnit.MILLISECONDS);
(new Random().nextInt(10_000) + 2000), TimeUnit.MILLISECONDS);
}
private static final class DeviceSimulatorUpdateThread implements Runnable {