Skip to content

Commit 916a418

Browse files
committed
Merge pull request #476 from gallodigital/master
Rescue from all connection-related errors when trying to reconnect (also...
2 parents e679768 + 9dd96fe commit 916a418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def ensure_connected
338338
end
339339

340340
yield
341-
rescue ConnectionError, InheritedError
341+
rescue BaseConnectionError
342342
disconnect
343343

344344
if attempts <= @options[:reconnect_attempts] && @reconnect

0 commit comments

Comments
 (0)