Closedown
This commit is contained in:
@@ -69,11 +69,14 @@ public class PuckDetection extends DeviceBase{
|
||||
|
||||
void subscriberTask(){
|
||||
try{
|
||||
System.out.println("Start");
|
||||
setState(State.Ready);
|
||||
org.zeromq.ZMQ.Context context = org.zeromq.ZMQ.context(1);
|
||||
org.zeromq.ZMQ.Socket subscriber = context.socket(org.zeromq.ZMQ.SUB);
|
||||
System.out.println("Start - 1");
|
||||
subscriber.connect(server);
|
||||
subscriber.subscribe("Status".getBytes());
|
||||
System.out.println("Start - 2");
|
||||
try{
|
||||
while (!Thread.currentThread().isInterrupted()) {
|
||||
System.out.println("Enter");
|
||||
@@ -104,7 +107,7 @@ public class PuckDetection extends DeviceBase{
|
||||
line = line.trim();
|
||||
String[] tokens = line.split(" ");
|
||||
int id = Integer.valueOf(tokens[0].substring(1));
|
||||
present.add(id);
|
||||
//present.add(id);
|
||||
PuckState puck = getPuck(id);
|
||||
if (tokens.length<3){
|
||||
puck.clear();
|
||||
|
||||
Reference in New Issue
Block a user