You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
fix for b01f17709f
This commit is contained in:
@@ -857,11 +857,11 @@ export default class RedisClient<
|
||||
const maybeClose = () => {
|
||||
if (!this._queue.isEmpty()) return;
|
||||
|
||||
this._socket.removeEventListener('data', maybeClose);
|
||||
this._socket.off('data', maybeClose);
|
||||
this._socket.destroySocket();
|
||||
resolve();
|
||||
};
|
||||
this._socket.addEventListener('data', maybeClose);
|
||||
this._socket.on('data', maybeClose);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user