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