From 0493218bd4d0dfe856b073d500fd9aab8e6f4724 Mon Sep 17 00:00:00 2001 From: Luke Bonaccorsi Date: Sat, 20 Feb 2016 15:50:54 +0000 Subject: [PATCH] Added connection teardown before creating new connection --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2358ac0..0130e46 100644 --- a/index.js +++ b/index.js @@ -38,6 +38,7 @@ hangouts.prototype.connect = function() { this.connection.connection.socket.setKeepAlive(true, 10000) this.connection.on('disconnect', function() { + this.connection.end(); this.connect(); }.bind(this))