From 755954f1bf16c553e014cdc394c2971e36a60c92 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 6 Feb 2012 11:51:08 -0500 Subject: [PATCH] another thing to catch --- lib/vegetable_glue/runner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vegetable_glue/runner.rb b/lib/vegetable_glue/runner.rb index dbeb530..bcd372b 100644 --- a/lib/vegetable_glue/runner.rb +++ b/lib/vegetable_glue/runner.rb @@ -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