user server is not laucnhed with stdout override to be able get output

This commit is contained in:
iLLiCiTiT 2020-01-30 11:27:09 +01:00
parent 8db7c19e74
commit 8f2f88aeae

View file

@ -53,8 +53,7 @@ class SocketThread(threading.Thread):
)
self.subproc = subprocess.Popen(
[sys.executable, self.filepath, "-port", str(self.port)],
stdout=subprocess.PIPE
[sys.executable, self.filepath, "-port", str(self.port)]
)
# Listen for incoming connections
@ -116,11 +115,6 @@ class SocketThread(threading.Thread):
if self.subproc.poll() is None:
self.subproc.terminate()
lines = self.subproc.stdout.readlines()
if lines:
print("*** Socked Thread stdout ***")
for line in lines:
os.write(1, line)
self.finished = True
def get_data_from_con(self, connection):