diff options
| author | Alexey Popravka <a.popravka@smartweb.com.ua> | 2019-01-03 13:15:36 +0200 |
|---|---|---|
| committer | Alexey Popravka <a.popravka@smartweb.com.ua> | 2019-01-03 13:15:36 +0200 |
| commit | a8bf82fc9edc0040062e5b3ee4c3074f67caaea1 (patch) | |
| tree | ebe0a4d5481494bce131bebd1c32472495d9fa07 | |
| parent | 6020f43264209b2430a01fc3098d74bb142942a7 (diff) | |
| download | redis-py-a8bf82fc9edc0040062e5b3ee4c3074f67caaea1.tar.gz | |
Make PythonParser's on_disconnect consistent with
Hiredisparser and Connection — do not close socket on disconnect.
Resolves #1085
| -rwxr-xr-x | redis/connection.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/redis/connection.py b/redis/connection.py index ea06241..7575b76 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -276,9 +276,7 @@ class PythonParser(BaseParser): def on_disconnect(self): "Called when the socket disconnects" - if self._sock is not None: - self._sock.close() - self._sock = None + self._sock = None if self._buffer is not None: self._buffer.close() self._buffer = None |
