summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redis/asyncio/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py
index 5bf2a0f..a528abc 100644
--- a/redis/asyncio/connection.py
+++ b/redis/asyncio/connection.py
@@ -687,7 +687,7 @@ class Connection:
@property
def is_connected(self):
- return self._reader and self._writer
+ return self._reader is not None and self._writer is not None
def register_connect_callback(self, callback):
self._connect_callbacks.append(weakref.WeakMethod(callback))