Add message for closed connection

This commit is contained in:
Fierelier 2022-05-30 11:36:12 +02:00
parent a69d881f95
commit 220c0005ba
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,9 @@ def main():
eprint("Receiving data...")
while True:
data = connection.recv(bufferSize)
if data == b"": return
if data == b"":
eprint("Connection closed.")
return
unbufferedStdout.write(data)
except:
connection.close()