mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-11 00:01:38 -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
|
end
|
||||||
|
|
||||||
def send_pending
|
def send_pending
|
||||||
|
return if @io.closed?
|
||||||
while (request, args = @pending.shift)
|
while (request, args = @pending.shift)
|
||||||
parser.send(request, **args)
|
parser.send(request, **args)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user