diff options
-rw-r--r-- | CHANGELOG.rdoc | 2 | ||||
-rw-r--r-- | lib/net/ssh/multi/session.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 2ccb3c8..361c3c7 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,5 +1,7 @@ === unreleased +* Remove redundant call to block_given? in Session#group [paddor] + * Add Channel#on_open_failed callback hook [Jamis Buck] diff --git a/lib/net/ssh/multi/session.rb b/lib/net/ssh/multi/session.rb index 40af774..333fdf3 100644 --- a/lib/net/ssh/multi/session.rb +++ b/lib/net/ssh/multi/session.rb @@ -219,7 +219,7 @@ module Net; module SSH; module Multi begin saved_groups = open_groups.dup open_groups.concat(args.map { |a| a.to_sym }).uniq! - yield self if block_given? + yield self ensure open_groups.replace(saved_groups) end @@ -548,4 +548,4 @@ module Net; module SSH; module Multi end end end -end; end; end
\ No newline at end of file +end; end; end |