From 1c13c640fc519761ff348c8717c93726c97e0f42 Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Thu, 9 Sep 2021 22:00:52 +0200 Subject: [PATCH] fixing double server start process --- app/classes/shared/server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index a504c15c..78cadf21 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -183,7 +183,7 @@ class Server: logger.info("Starting server in {p} with command: {c}".format(p=self.server_path, c=self.server_command)) try: - self.process = pexpect.spawn(self.server_command, cwd=self.server_path, timeout=None, encoding=None) + self.process = pexpect.spawn(self.server_command, cwd=self.server_path, timeout=None, encoding='utf-8') except Exception as ex: msg = "Server {} failed to start with error code: {}".format(self.name, ex) logger.error(msg) @@ -194,7 +194,6 @@ class Server: websocket_helper.broadcast('send_start_reload', { }) - self.process = pexpect.spawn(self.server_command, cwd=self.server_path, timeout=None, encoding='utf-8') out_buf = ServerOutBuf(self.process, self.server_id) logger.debug('Starting virtual terminal listener for server {}'.format(self.name))