From d6a3e8e6b1662c99fadfdaf4c74a020801c2a59c Mon Sep 17 00:00:00 2001 From: John Hennig Date: Sat, 16 Oct 2021 22:08:17 +0200 Subject: [PATCH] Don't stop local server instance during clean-up. Since `mph.start()` does not start the local server instance with the `multi=True` option, we don't have to stop it explicitly, it will just wind down on its own. And we don't need to add another race condition to the exit sequence, that are plenty enough as it is. --- mph/session.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mph/session.py b/mph/session.py index 6cc994e..0660d81 100755 --- a/mph/session.py +++ b/mph/session.py @@ -153,8 +153,6 @@ def cleanup(): except Exception: error = 'Error while disconnecting client at session clean-up.' log.exception(error) - if server and server.running(): - server.stop() if jpype.isJVMStarted(): log.info('Exiting the Java virtual machine.') sys.stdout.flush()