mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 04:35:17 +00:00
tcpServer: Don't print intermittent newlines
This commit is contained in:
parent
063e20677f
commit
5c71569545
1 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,11 @@ while True:
|
|||
while True:
|
||||
data = connection.recv(1024)
|
||||
if data:
|
||||
print(data.decode("utf-8"))
|
||||
print(data.decode("utf-8"), end='', flush=True)
|
||||
else:
|
||||
print(f'Connection Terminated.')
|
||||
break
|
||||
|
||||
|
||||
finally:
|
||||
# Clean up the connection
|
||||
connection.close()
|
Loading…
Reference in a new issue