Unverified Commit af16cf1c authored by Julien Veyssier's avatar Julien Veyssier
Browse files

timeout now frees the model to run


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
No related merge requests found
Showing with 8 additions and 2 deletions
+8 -2
......@@ -78,12 +78,12 @@ public class Whatasit extends JAMSComponent {
System.out.println(exc);
}
System.out.println("WHATASIT !!DOING!! 2sec run " + i);
/*System.out.println("WHATASIT !!DOING!! 2sec run " + i);
try {
Thread.sleep(2000);
} catch (InterruptedException exc) {
System.out.println(exc);
}
}*/
}
System.out.println("WHATASIT **FINISHED** run "+i);
......@@ -124,6 +124,8 @@ public class Whatasit extends JAMSComponent {
System.out.println("timeout reached, KILLING server");
// kill socket
server.stopServer();
server.setRunning(false);
sOkStep.release();
// stop the thread
server.stop();
}
......@@ -153,6 +155,10 @@ public class Whatasit extends JAMSComponent {
return this.running;
}
public void setRunning(boolean running) {
this.running = running;
}
public void stopServer() {
try {
ss.close();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment