mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-08 00:02:42 -04:00
do not sending pending if io hasn't been opened yet (as protocol might have to be negotiated first
This commit is contained in:
parent
5218f5a87b
commit
1da2d0829a
@ -115,6 +115,7 @@ module HTTPX
|
||||
end
|
||||
|
||||
def send_pending
|
||||
return if @io.closed?
|
||||
while (request, args = @pending.shift)
|
||||
parser.send(request, **args)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user