summaryrefslogtreecommitdiff
path: root/lib/chef/monkey_patches/net-ssh-multi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/monkey_patches/net-ssh-multi.rb')
-rw-r--r--lib/chef/monkey_patches/net-ssh-multi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/monkey_patches/net-ssh-multi.rb b/lib/chef/monkey_patches/net-ssh-multi.rb
index b0d05a0b27..cb1bc3b2bc 100644
--- a/lib/chef/monkey_patches/net-ssh-multi.rb
+++ b/lib/chef/monkey_patches/net-ssh-multi.rb
@@ -119,7 +119,7 @@ if Net::SSH::Multi::Version::STRING == "1.1.0" || Net::SSH::Multi::Version::STRI
count = concurrent_connections ? (concurrent_connections - open_connections) : @pending_sessions.length
count.times do
- session = @pending_sessions.pop or break
+ (session = @pending_sessions.pop) || break
# ===== PATCH START
# Increment the open_connections count here to prevent
# creation of connection thread again before that is