summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-xredis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 0e6fa37..ad69bf0 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -1141,7 +1141,7 @@ class ConnectionPool(object):
timeout_at = time() + 5
acquired = False
while time() < timeout_at:
- acquired = self._fork_lock.acquire()
+ acquired = self._fork_lock.acquire(blocking=False)
if acquired:
break
if not acquired: