We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443873f commit abf65e1Copy full SHA for abf65e1
lib/redis/client.rb
@@ -294,6 +294,8 @@ def ensure_connected
294
tries = 0
295
296
begin
297
+ tries += 1
298
+
299
if connected?
300
if Process.pid != @pid
301
raise InheritedError,
@@ -304,8 +306,6 @@ def ensure_connected
304
306
connect
305
307
end
308
- tries += 1
-
309
yield
310
rescue ConnectionError, InheritedError
311
disconnect
0 commit comments