Permalink
Browse files

make sure we poll at least once per second

git-svn-id: http://svn.rubyonrails.org/rails/branches/cap2-on-netssh2@7247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7490269 commit bf89ca1c42b5de9b49b70fc3811b6b42bc736261 @jamis jamis committed Jul 27, 2007
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/capistrano/gateway.rb
@@ -55,9 +55,7 @@ def initialize(server, options={}) #:nodoc:
SSH.connect(server, @options) do |@session|
logger.trace "gateway connection established" if logger
mutex.synchronize { waiter.signal }
- @session.loop do
- !@terminate_thread
- end
+ @session.loop(1) { !@terminate_thread }
end
end

0 comments on commit bf89ca1

Please sign in to comment.