Permalink
Browse files

Decrement retry counter to avoid endless retry loop.

  • Loading branch information...
1 parent 467dfbd commit daab6ac8c145f371a08456777360c23f0a59ea68 @bernd bernd committed Apr 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ftw/request.rb
View
@@ -84,6 +84,7 @@ def execute(connection)
# TODO(sissel): Rescue specific exceptions, not just anything.
# Reconnect and retry
if tries > 0
+ tries -= 1
connection.connect
retry
else

0 comments on commit daab6ac

Please sign in to comment.