Commit 039a59e0 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

add catch TimeoutExpired error when waiting for vadere to close

parent 06cfd955
Pipeline #199556 passed with stages
in 127 minutes and 41 seconds
...@@ -114,7 +114,11 @@ class VadereRunner(threading.Thread): ...@@ -114,7 +114,11 @@ class VadereRunner(threading.Thread):
self.client_socket.close() self.client_socket.close()
server_socket.close() server_socket.close()
self.vadere.wait(timeout=2) try:
except subprocess.TimeoutExpired as e:"vadere server process (PID:{}) not terminated after timeout. Send SIGKILL")
if self.vadere.returncode is None: if self.vadere.returncode is None:
os.kill(, signal.SIGKLL) os.kill(, signal.SIGKLL)
time.sleep(0.5) time.sleep(0.5)
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