Closedown

This commit is contained in:
gac-S_Changer
2017-02-10 11:46:51 +01:00
parent 5272348e96
commit 1df30e955b

View File

@@ -81,11 +81,14 @@ public class PuckDetection extends DeviceBase{
@Override
public void run() {
try{
if (chrono.isTimeout(3000)){
setState(State.Offline);
for (PuckState puck:pucks){
puck.clear();
}
while (!Thread.currentThread().isInterrupted()) {
if (chrono.isTimeout(3000)){
setState(State.Offline);
for (PuckState puck:pucks){
puck.clear();
}
}
Thread.sleep(1000);
}
} catch (Exception ex){
getLogger().log(Level.INFO, null, ex);