From 4babce53572a15b7e3c4f540b11dedcb61231382 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 22 Jul 2019 13:14:07 +0100 Subject: Only fill throttle when buffer is empty --- src/IRCSocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/IRCSocket.py b/src/IRCSocket.py index 059c8515..fff93e8c 100644 --- a/src/IRCSocket.py +++ b/src/IRCSocket.py @@ -139,7 +139,7 @@ class Socket(IRCObject.Object): self._recent_sends.clear() throttle_space = self.throttle_space() - if throttle_space: + if not self._buffered_lines and throttle_space: to_buffer = self._queued_lines[:throttle_space] self._queued_lines = self._queued_lines[throttle_space:] for line in to_buffer: -- cgit v1.3.1-10-gc9f91