Skip to content

Commit

Permalink
- UA: re-register after a WS re-connection if the UA was registered b…
Browse files Browse the repository at this point in the history
…efore (by means of static configuration or a user call to UA.register()).
  • Loading branch information
ibc committed Oct 9, 2014
1 parent 534e025 commit 65805c6
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 708 deletions.
5 changes: 1 addition & 4 deletions src/Registrator.js
Expand Up @@ -22,7 +22,7 @@ Registrator = function(ua, transport) {
this.registrationTimer = null;

// Set status
this.registered = this.registered_before = false;
this.registered = false;

// Save into ua instance
this.ua.registrator = this;
Expand Down Expand Up @@ -280,7 +280,6 @@ Registrator.prototype = {
},

onTransportClosed: function() {
this.registered_before = this.registered;
if (this.registrationTimer !== null) {
window.clearTimeout(this.registrationTimer);
this.registrationTimer = null;
Expand All @@ -293,8 +292,6 @@ Registrator.prototype = {
},

close: function() {
this.registered_before = false;

if (this.registered) {
this.unregister();
}
Expand Down

0 comments on commit 65805c6

Please sign in to comment.