Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
Some more tweaks to address #35 and get more data on related issues w…
Browse files Browse the repository at this point in the history
…ith redis.
  • Loading branch information
drewww committed Aug 6, 2013
1 parent 8a50ebd commit b1ed484
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/unhangout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,16 @@ exports.UnhangoutServer.prototype = {
//----------------------------//

this.redis = redis_lib.createClient(parseInt(this.options.REDIS_PORT), this.options.REDIS_HOST);
this.redis.on("ready", _.bind(function(err) {

this.redis.on("end", function() {
logger.error("redis end");
});

this.redis.on("error", function(err) {
logger.error("redis error: " + err);
});

this.redis.once("ready", _.bind(function(err) {
if(err) {
logger.error("Error connecting to redis: " + err);
this.emit("error", "Error connecting to redis: " + err, err);
Expand Down

0 comments on commit b1ed484

Please sign in to comment.