You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
ensure client emits connect and end events
This commit is contained in:
2
index.js
2
index.js
@@ -390,7 +390,7 @@ RedisClient.prototype.connection_gone = function () {
|
||||
console.warn("Redis connection is gone.");
|
||||
}
|
||||
self.connected = false;
|
||||
self.emit("close");
|
||||
self.emit("end");
|
||||
self.command_queue.forEach(function (args) {
|
||||
if (typeof args[2] === "function") {
|
||||
args[2]("Server connection closed");
|
||||
|
Reference in New Issue
Block a user