You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Flush queue when .end() is called
This commit is contained in:
committed by
Ruben Bridgewater
parent
38281c20b2
commit
4b100b8b64
3
index.js
3
index.js
@@ -848,6 +848,9 @@ RedisClient.prototype.end = function () {
|
|||||||
}
|
}
|
||||||
this.stream.on("error", function noop(){});
|
this.stream.on("error", function noop(){});
|
||||||
|
|
||||||
|
// Flush queue
|
||||||
|
this.flush_and_error("Redis connection ended.");
|
||||||
|
|
||||||
this.connected = false;
|
this.connected = false;
|
||||||
this.ready = false;
|
this.ready = false;
|
||||||
this.closing = true;
|
this.closing = true;
|
||||||
|
Reference in New Issue
Block a user