Give more grace with service delete
This commit is contained in:
parent
3d895026e1
commit
d6b8e5f16d
@ -27,11 +27,11 @@ public class delegationTimer {
|
||||
{
|
||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||
final Runnable runnable = new Runnable() {
|
||||
int countdownStarter = 5;
|
||||
int countdownStarter = 9;
|
||||
public void run() {
|
||||
countdownStarter--;
|
||||
if (countdownStarter <= 0) {
|
||||
countdownStarter = 5;
|
||||
countdownStarter = 9;
|
||||
delegationServices.TargetDelete(CID);
|
||||
scheduler.shutdown();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user