From 48054b6216c11248cdaee759c9b7a594cbf22d7e Mon Sep 17 00:00:00 2001 From: Luke Bonaccorsi Date: Thu, 12 Mar 2015 00:03:26 +0000 Subject: [PATCH] Fixed issue with scope --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }