task.intervalMillis = (long)(intervalSeconds * 1000);
task.repeatCount = repeatCount;
synchronized (tasks) {
tasks.add(task);
}
<BUG>wake();
}</BUG>
public void stop () {
synchronized (instances) {
instances.removeValue(this, true);

task.intervalMillis = (long)(intervalSeconds * 1000);
task.repeatCount = repeatCount;
synchronized (tasks) {
tasks.add(task);
}
wake();
return task;
}
public void stop () {
synchronized (instances) {
instances.removeValue(this, true);
