mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
parent
f8936b3341
commit
44264b4fee
Notes:
git
2022-08-09 12:05:48 +09:00
80 changed files with 312 additions and 286 deletions
|
@ -26,7 +26,7 @@ class Gem::Request::HTTPPool # :nodoc:
|
|||
|
||||
def close_all
|
||||
until @queue.empty?
|
||||
if connection = @queue.pop(true) and connection.started?
|
||||
if (connection = @queue.pop(true)) && connection.started?
|
||||
connection.finish
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue