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):
self.client_socket.close()
server_socket.close()
self.vadere.wait(timeout=2)
try:
self.vadere.wait(timeout=2)
except subprocess.TimeoutExpired as e:
self.log.info(f"vadere server process (PID:{self.vadere.pid}) not terminated after timeout. Send SIGKILL")
if self.vadere.returncode is None:
os.kill(self.vadere.pid, signal.SIGKLL)
time.sleep(0.5)
......
Markdown is supported
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