tcpServer: Don't print intermittent newlines

This commit is contained in:
Nick Renieris 2022-06-22 20:11:01 +03:00 committed by GRAnimated
parent 063e20677f
commit 5c71569545

View file

@ -23,7 +23,7 @@ while True:
while True: while True:
data = connection.recv(1024) data = connection.recv(1024)
if data: if data:
print(data.decode("utf-8")) print(data.decode("utf-8"), end='', flush=True)
else: else:
print(f'Connection Terminated.') print(f'Connection Terminated.')
break break