Skip to content

Commit c60580b

Browse files
committed
Ensure to not check for socket write buffer if disabled
1 parent 18d6284 commit c60580b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logstash_async/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _wait_for_socket_buffer_empty(self):
145145
time_waited = 0
146146
# wait until the socket's write buffer is empty
147147
# but do not wait longer than SOCKET_CLOSE_WAIT_TIMEOUT
148-
while not self._is_sock_write_buff_empty() and time_waited < wait_timeout:
148+
while time_waited < wait_timeout and not self._is_sock_write_buff_empty():
149149
time_waited += interval
150150
time.sleep(interval)
151151

0 commit comments

Comments
 (0)