Skip to content

Commit

Permalink
Fix #117. Clear registration timer before re-setting it
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Jun 26, 2013
1 parent 32df47f commit 1740e5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jssip",
"title": "JsSIP",
"description": "the Javascript SIP library",
"version": "0.3.4",
"version": "0.3.5",
"homepage": "http://jssip.net",
"author": "José Luis Millán <jmillan@aliax.net>",
"contributors": [
Expand Down
3 changes: 3 additions & 0 deletions src/Registrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ Registrator.prototype = {
return;
}

// Clear registration timer
window.clearTimeout(this.registrationTimer);

switch(true) {
case /^1[0-9]{2}$/.test(response.status_code):
// Ignore provisional responses.
Expand Down

0 comments on commit 1740e5e

Please sign in to comment.