Skip to content

Commit

Permalink
Added connection teardown before creating new connection
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFoodPixels committed Feb 20, 2016
1 parent 7cf3212 commit 0493218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 0493218

Please sign in to comment.