Commit 180797ee authored by Per Cederqvist's avatar Per Cederqvist
Browse files

socket.recv can raise socket.error! Handle it as end-of-file.

parent 3774b67d
......@@ -21,7 +21,10 @@ fdset = [s, sys.stdin]
while 1:
(i, o, e) = select.select(fdset, [], [])
if s in i:
d = s.recv(512)
try:
d = s.recv(512)
except socket.error:
d = ""
if d == "":
if needpfx == 0:
print
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment