1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Merge pull request #118 from dvv/master

fix for drain event
This commit is contained in:
Matt Ranney
2011-07-06 07:28:37 -07:00
12 changed files with 283 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ RedisClient.prototype.send_offline_queue = function () {
this.offline_queue = new Queue();
// Even though items were shifted off, Queue backing store still uses memory until next add, so just get a new Queue
if (buffered_writes === 0) {
if (!buffered_writes) {
this.should_buffer = false;
this.emit("drain");
}