feature #4716: add timeout to SshStream#wait_for_command

This commit is contained in:
Javi Fontan committed 2016-09-08 18:18:38 +02:00
1 parent af0e87d399
commit 199d02bb29
1 file changed
+3 -1
+3 -1
View File
@@ -110,7 +110,9 @@ class SshStream
end
end
def wait_for_command
def wait_for_command(timeout = nil)
@timeout = timeout if timeout
done_out = false
done_err = false
time_start = Time.now.to_i