diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-26 20:04:28 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-26 20:04:28 +0200 |
commit | 487bed8235064411d15129a797c91bd3b3bda99c (patch) | |
tree | 6ee1ed4b8e2c85a5a04871af51babd7402f7da93 /lib | |
parent | 02b7ade5edd63dfc007b46f1f7bfa340538701d2 (diff) |
increased try agains
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.rb b/lib/utils.rb index 3279c29..28e114e 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -29,7 +29,7 @@ module OpenTox end end - def self.try_again(times=5) + def self.try_again(times=25) count = 0 while (true) begin @@ -37,7 +37,7 @@ module OpenTox rescue => ex count += 1 if count<times - LOGGER.warn "failed, try again in a second : "+ex.message + LOGGER.warn "failed ("+count.to_s+"), try again in a second : "+ex.message sleep 1 else raise ex |