Skip to content

Commit

Permalink
Merge pull request #189 from xPaw/patch-2
Browse files Browse the repository at this point in the history
Reset registered to false when opening a fresh connection
  • Loading branch information
prawnsalad committed Feb 9, 2019
2 parents d60d2d8 + 9695815 commit 1bedceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connection.js
Expand Up @@ -67,6 +67,7 @@ module.exports = class Connection extends EventEmitter {

bindTransportEvents(transport);

this.registered = false;
this.requested_disconnect = false;
this.emit('connecting');
transport.connect();
Expand Down

0 comments on commit 1bedceb

Please sign in to comment.