1
0
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:
Chris Breneman
2015-09-15 13:22:35 -04:00
committed by Ruben Bridgewater
parent 38281c20b2
commit 4b100b8b64

View File

@@ -848,6 +848,9 @@ RedisClient.prototype.end = function () {
}
this.stream.on("error", function noop(){});
// Flush queue
this.flush_and_error("Redis connection ended.");
this.connected = false;
this.ready = false;
this.closing = true;