Closedown

This commit is contained in:
gac-S_Changer
2017-02-10 11:46:51 +01:00
parent 5272348e96
commit 1df30e955b
+8 -5
View File
@@ -81,11 +81,14 @@ public class PuckDetection extends DeviceBase{
@Override @Override
public void run() { public void run() {
try{ try{
if (chrono.isTimeout(3000)){ while (!Thread.currentThread().isInterrupted()) {
setState(State.Offline); if (chrono.isTimeout(3000)){
for (PuckState puck:pucks){ setState(State.Offline);
puck.clear(); for (PuckState puck:pucks){
} puck.clear();
}
}
Thread.sleep(1000);
} }
} catch (Exception ex){ } catch (Exception ex){
getLogger().log(Level.INFO, null, ex); getLogger().log(Level.INFO, null, ex);