1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

fix client.quit, add error events on cluster, fix some "deepsource.io" warnings

This commit is contained in:
leibale
2021-09-02 14:00:52 -04:00
parent e421dc4bed
commit b80afc6346
9 changed files with 86 additions and 85 deletions

View File

@@ -298,9 +298,10 @@ export default class RedisClient<M extends RedisModules = RedisModules, S extend
}
QUIT(): Promise<void> {
return this.#socket.quit(async () => {
this.#queue.addEncodedCommand(encodeCommand(['QUIT']));
return this.#socket.quit(() => {
const promise = this.#queue.addEncodedCommand(encodeCommand(['QUIT']));
this.#tick();
return promise;
});
}