diff options
Diffstat (limited to 'kombu/connection.py')
-rw-r--r-- | kombu/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/connection.py b/kombu/connection.py index 4b2cbd62..3ad84645 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -529,7 +529,7 @@ class Connection: # the error if it persists after a new connection # was successfully established. raise - if max_retries is not None and retries > max_retries: + if max_retries is not None and retries >= max_retries: raise self._debug('ensure connection error: %r', exc, exc_info=1) |