Closedown
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user