Move timer back to reduce bandwith.
This commit is contained in:
parent
46513d7a9c
commit
25c791c3b5
@ -9,11 +9,11 @@ public class delegationTimer {
|
|||||||
{
|
{
|
||||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||||
final Runnable runnable = new Runnable() {
|
final Runnable runnable = new Runnable() {
|
||||||
int countdownStarter = 1;
|
int countdownStarter = 3;
|
||||||
public void run() {
|
public void run() {
|
||||||
countdownStarter--;
|
countdownStarter--;
|
||||||
if (countdownStarter <= 0) {
|
if (countdownStarter <= 0) {
|
||||||
countdownStarter = 1;
|
countdownStarter = 3;
|
||||||
delegationServices.delegate();
|
delegationServices.delegate();
|
||||||
scheduler.shutdown();
|
scheduler.shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user