Skip to content

Commit

Permalink
don't spin in Session#close while waiting for channels to close
Browse files Browse the repository at this point in the history
  • Loading branch information
willbryant committed Sep 15, 2008
1 parent 7b224c0 commit 9bdd029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ssh/connection/session.rb
Expand Up @@ -96,7 +96,7 @@ def closed?
def close
info { "closing remaining channels (#{channels.length} open)" }
channels.each { |id, channel| channel.close }
loop(0) { channels.any? }
loop { channels.any? }
transport.close
end

Expand Down

0 comments on commit 9bdd029

Please sign in to comment.