# File lib/net/ssh/connection/session.rb, line 107 107: def close 108: info { "closing remaining channels (#{channels.length} open)" } 109: channels.each { |id, channel| channel.close } 110: loop { channels.any? } 111: transport.close 112: end