diff options
Diffstat (limited to 'lib/rubygems/request/http_pool.rb')
-rw-r--r-- | lib/rubygems/request/http_pool.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request/http_pool.rb b/lib/rubygems/request/http_pool.rb index f028516db8..7b309eedd3 100644 --- a/lib/rubygems/request/http_pool.rb +++ b/lib/rubygems/request/http_pool.rb @@ -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 |