diff --git a/index.js b/index.js index b319e17..683c519 100644 --- a/index.js +++ b/index.js @@ -83,8 +83,8 @@ hangouts.prototype.init = function(){ } hangouts.prototype.exit = function(){ - if (self.connection) { - self.connection.end(); + if (this.connection) { + this.connection.end(); } }