diff options
author | Tony Pitale <tpitale@gmail.com> | 2012-03-28 14:38:43 -0300 |
---|---|---|
committer | Tony Pitale <tpitale@gmail.com> | 2012-03-28 14:38:43 -0300 |
commit | b1cd0734938e73feeffa006a0ce3898acc4c0356 (patch) | |
tree | e4bcb14ec3ca1979e0fc21f47f768bc498e9082f | |
parent | 22cc7b8df14f987946b2cf50c153fe7ca27b9580 (diff) | |
download | net-ssh-gateway-b1cd0734938e73feeffa006a0ce3898acc4c0356.tar.gz |
Move the removal of loop_wait from options above net::ssh start so that net::ssh start doesn't complain about loop_wait.
Currently broken in gem version 1.1.0 and net-ssh 2.3.0.
-rw-r--r-- | lib/net/ssh/gateway.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ssh/gateway.rb b/lib/net/ssh/gateway.rb index 0757d18..ed8c69d 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 |