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

Fix bug in ready check with return_buffers set to true.

Thanks to Dean Mao and Austin Chau.
This commit is contained in:
Matt Ranney
2011-02-22 21:10:50 -10:00
parent 99ae085e40
commit 29e09c1c16
3 changed files with 9 additions and 3 deletions

View File

@@ -179,8 +179,8 @@ RedisClient.prototype.ready_check = function () {
return;
}
var lines = res.split("\r\n"), obj = {}, retry_time;
var lines = res.toString().split("\r\n"), obj = {}, retry_time;
lines.forEach(function (line) {
var parts = line.split(':');
if (parts[1]) {