Minor patch for a problem noticed yesterday too (in some cases if Ctrl-C is pressed sent is most probably a None value)

This commit is contained in:
Miroslav Stampar 2013-08-23 11:59:58 +02:00
parent 88b992ad83
commit 7cb3ea20dd

View File

@ -197,4 +197,6 @@ def send_all(p, data):
while len(data):
sent = p.send(data)
if not isinstance(sent, int):
break
data = buffer(data, sent)