summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2016-03-12 12:49:00 +0100
committerMiklós Fazekas <mfazekas@szemafor.com>2016-03-12 12:49:00 +0100
commitf1d43390090cf671ac145f80096dbc51c39c5eb3 (patch)
tree76e0e34d838d5bcdf7f1666883f2b08602dabbfc
parent4174cc55220211828240d07a0d0827a506b71d18 (diff)
parentb1cd0734938e73feeffa006a0ce3898acc4c0356 (diff)
downloadnet-ssh-gateway-f1d43390090cf671ac145f80096dbc51c39c5eb3.tar.gz
Merge pull request #2 from tpitale/patch-1
Move the removal of loop_wait from options above net::ssh start so that ...
-rw-r--r--lib/net/ssh/gateway.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ssh/gateway.rb b/lib/net/ssh/gateway.rb
index a10e238..7bbaf47 100644
--- a/lib/net/ssh/gateway.rb
+++ b/lib/net/ssh/gateway.rb
@@ -71,11 +71,11 @@ class Net::SSH::Gateway
# with the :loop_wait option.
#
def initialize(host, user, options={})
+ @loop_wait = options.delete(:loop_wait) || 0.001
@session = Net::SSH.start(host, user, options)
@session_mutex = Mutex.new
@port_mutex = Mutex.new
@next_port = MAX_PORT
- @loop_wait = options.delete(:loop_wait) || 0.001
initiate_event_loop!
end