Add message for closed connection
This commit is contained in:
parent
a69d881f95
commit
220c0005ba
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue