Skip to content

Commit 4b100b8

Browse files
CrispyConductorRuben Bridgewater
authored andcommitted
Flush queue when .end() is called
1 parent 38281c2 commit 4b100b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,9 @@ RedisClient.prototype.end = function () {
848848
}
849849
this.stream.on("error", function noop(){});
850850

851+
// Flush queue
852+
this.flush_and_error("Redis connection ended.");
853+
851854
this.connected = false;
852855
this.ready = false;
853856
this.closing = true;

0 commit comments

Comments
 (0)