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

removed useless extension

parent 98614bc0
Branches
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean; ...@@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
@Slf4j @Slf4j
@Getter @Getter
@Setter @Setter
public class JAMSUpdater extends Thread implements AppUpdater { public class JAMSUpdater implements AppUpdater {
private final AtomicBoolean updateAvailable = new AtomicBoolean(false); private final AtomicBoolean updateAvailable = new AtomicBoolean(false);
private final AtomicBoolean doUpdate; private final AtomicBoolean doUpdate;
...@@ -18,25 +18,6 @@ public class JAMSUpdater extends Thread implements AppUpdater { ...@@ -18,25 +18,6 @@ public class JAMSUpdater extends Thread implements AppUpdater {
public JAMSUpdater(AtomicBoolean doUpdate) { public JAMSUpdater(AtomicBoolean doUpdate) {
this.doUpdate = 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 @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment