diff options
| author | 2019-02-20 16:52:45 +0000 | |
|---|---|---|
| committer | 2019-02-20 16:52:45 +0000 | |
| commit | e343bf3e6a0785c1cf8ade1543718e8984ea706f (patch) | |
| tree | 1379c7d26278071f3fac665e06baecfa9e1889b9 | |
| parent | `r"\"` isn't valid - use `"\\"` (utils.irc) (diff) | |
| signature | ||
Check throttle space when queueing more data not whether there's no queued data
| -rw-r--r-- | src/IRCSocket.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IRCSocket.py b/src/IRCSocket.py index 21ef2153..af1c3a5e 100644 --- a/src/IRCSocket.py +++ b/src/IRCSocket.py @@ -122,8 +122,8 @@ class Socket(IRCObject.Object): def _send(self) -> typing.List[str]: decoded_sent = [] - if not len(self._write_buffer): - throttle_space = self.throttle_space() + throttle_space = self.throttle_space() + if throttle_space: to_buffer = self._queued_lines[:throttle_space] self._queued_lines = self._queued_lines[throttle_space:] for line in to_buffer: |
