Commit 51d35705 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac420] Fix a bug when the write did not fit

Pointed out in review.
A test that would catch it needs to be written.
parent 57ba3163
......@@ -345,9 +345,9 @@ class MsgQ:
if now - last_sent > 0.1:
self.kill_socket(fileno, sock)
buff += msg[amount_sent:]
buff += msg
buff = msg
buff = msg[amount_sent:]
last_sent = now
if self.poller:
self.poller.register(fileno, select.POLLIN |
Supports Markdown
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