Skip to content
Snippets Groups Projects
Commit f488583d authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

removed useless extension

parent 98614bc0
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
@Slf4j
@Getter
@Setter
public class JAMSUpdater extends Thread implements AppUpdater {
public class JAMSUpdater implements AppUpdater {
private final AtomicBoolean updateAvailable = new AtomicBoolean(false);
private final AtomicBoolean doUpdate;
......@@ -18,25 +18,6 @@ public class JAMSUpdater extends Thread implements AppUpdater {
public JAMSUpdater(AtomicBoolean doUpdate) {
this.doUpdate = doUpdate;
this.start();
//As a mock I left this here, please remove it when this is done.
}
@Override
public void run() {
try {
synchronized (this){
this.wait(20_000);
}
this.doUpdate.set(true);
synchronized (doUpdate) {
doUpdate.notify();
}
}
catch (Exception e){
log.error("An error has occurred! {}",e.getMessage());
}
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment