Move deletion to one minute.
This commit is contained in:
@ -25,11 +25,11 @@ public class delegationTimer {
|
||||
{
|
||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||
final Runnable runnable = new Runnable() {
|
||||
int countdownStarter = 15;
|
||||
int countdownStarter = 60;
|
||||
public void run() {
|
||||
countdownStarter--;
|
||||
if (countdownStarter <= 0) {
|
||||
countdownStarter = 15;
|
||||
countdownStarter = 60;
|
||||
delegationServices.Clear();
|
||||
//flushes all requests from the server
|
||||
scheduler.shutdown();
|
||||
|
Reference in New Issue
Block a user