Skip to content
Permalink
Browse files

Fix #117. Clear registration timer before re-setting it

  • Loading branch information
jmillan committed Jun 26, 2013
1 parent 32df47f commit 1740e5ecad6b86ddc0b78c5456e3e7aa890f6500
Showing with 4 additions and 1 deletion.
  1. +1 −1 package.json
  2. +3 −0 src/Registrator.js
@@ -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": [
@@ -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.

0 comments on commit 1740e5e

Please sign in to comment.
You can’t perform that action at this time.