Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
fixes problem when executing exit from shell. - gman77
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever authored and jamis committed Oct 24, 2010
1 parent 38855d1 commit bf60226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ssh/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def close!
end

def child_finished(child)
channel.on_close(&method(:on_channel_close))
channel.on_close(&method(:on_channel_close)) if !channel.nil?
processes.delete(child)
processes.first.run if processes.any?
end
Expand Down

0 comments on commit bf60226

Please sign in to comment.