Skip to content

Commit

Permalink
need to abort threads on exception so that things don't hang mystical…
Browse files Browse the repository at this point in the history
…ly when using the gateway
  • Loading branch information
jamis committed Apr 25, 2008
1 parent bc6dd70 commit f3f67f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/capistrano/configuration/connections.rb
Expand Up @@ -22,6 +22,7 @@ def connect_to(server)

class GatewayConnectionFactory #:nodoc:
def initialize(gateway, options)
Thread.abort_on_exception = true
server = ServerDefinition.new(gateway)
@gateway = Net::SSH::Gateway.new(server.host, server.user || ServerDefinition.default_user, server.options)
@options = options
Expand Down

0 comments on commit f3f67f4

Please sign in to comment.