another thing to catch

This commit is contained in:
John Bintz 2012-02-06 11:51:08 -05:00
parent 1baef62b6f
commit 755954f1bf

View File

@ -74,7 +74,7 @@ module VegetableGlue
while times > 0 while times > 0
begin begin
Net::HTTP.get(options[:url]) Net::HTTP.get(options[:url])
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE, EOFError
return true return true
end end
@ -93,7 +93,7 @@ module VegetableGlue
while times > 0 while times > 0
begin begin
result = get_acceptance result = get_acceptance
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE, EOFError
end end
break if result break if result