lib/bluepill/socket.rb in ra-bluepill-0.0.47 vs lib/bluepill/socket.rb in ra-bluepill-0.0.48
- old
+ new
@@ -20,10 +20,10 @@
end
rescue EOFError, Timeout::Error
@@current_retry += 1
puts "Retry #{@@current_retry} of #{RETRIES}"
if @@current_retry <= RETRIES
- client_command(base_dir, name, command)
+ client_command(base_dir, name, command, timeout)
else
abort("Socket Timeout: Server may not be responding")
end
ensure
@@current_retry = 0
\ No newline at end of file