From 41fae2d16da8a717092d9a6e0ea34a1630e82e4b Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Fri, 14 Apr 2023 19:16:18 -0400 Subject: [PATCH 1/2] Fix buf size delcaration --- app/classes/shared/server.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 68e64973..76e53633 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -467,7 +467,6 @@ class ServerInstance: cwd=self.server_path, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - bufsize=1, stderr=subprocess.STDOUT, ) except Exception as ex: From a1eb6f1a446c399d9f371fb0b67b7bfc6dcd7e51 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Fri, 14 Apr 2023 19:43:21 -0400 Subject: [PATCH 2/2] Fix Popen call --- app/classes/shared/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 76e53633..c467240a 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -462,7 +462,7 @@ class ServerInstance: # *********************************************** elif HelperServers.get_server_type_by_id(self.server_id) == "steam": try: - self.process = subprocess.call( + self.process = subprocess.Popen( self.server_command, cwd=self.server_path, stdin=subprocess.PIPE,