Permalink
Browse files

! transport won't be closed if authentication fails

  • Loading branch information...
1 parent 0078754 commit a10bb100191d47b59b6bc3336c06311193b1cbdf Patrick Marchi committed Mar 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/net/ssh.rb
View
@@ -193,6 +193,7 @@ def self.start(host, user, options={}, &block)
return connection
end
else
+ transport.closed
@whj

whj Mar 2, 2011

Typo it should be "close" NOT "closeD"

raise AuthenticationFailed, user
end
end

1 comment on commit a10bb10

Collaborator

delano commented on a10bb10 Mar 2, 2011

Thanks for catching that. It passed all the tests.

Please sign in to comment.