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

Fix this/self reference on db re-select.

This commit is contained in:
Matt Ranney
2011-11-13 20:19:34 -10:00
parent dfcfaf3dc5
commit 6a44331acd
2 changed files with 2 additions and 19 deletions

View File

@@ -166,8 +166,8 @@ RedisClient.prototype.do_auth = function () {
}
// restore the selected db if needed
if (this.selected_db !== null) {
this.send_command('select', [this.selected_db]);
if (self.selected_db !== null) {
self.send_command('select', [self.selected_db]);
}
// now we are really connected