summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/utils.rb b/lib/utils.rb
index 28e114e..741fbd6 100644
--- a/lib/utils.rb
+++ b/lib/utils.rb
@@ -29,23 +29,6 @@ module OpenTox
end
end
- def self.try_again(times=25)
- count = 0
- while (true)
- begin
- return yield
- rescue => ex
- count += 1
- if count<times
- LOGGER.warn "failed ("+count.to_s+"), try again in a second : "+ex.message
- sleep 1
- else
- raise ex
- end
- end
- end
- end
-
end
# ['rubygems', 'rest_client'].each do |r|