another thing to catch

This commit is contained in:
John Bintz 2012-02-06 11:51:08 -05:00
parent 1baef62b6f
commit 755954f1bf
1 changed files with 2 additions and 2 deletions

View File

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