Skip to content
Permalink
Browse files

Fix #99. Do not close the RTCSession if it has been accepted and the …

…WS disconnects
  • Loading branch information
jmillan committed Jun 12, 2013
1 parent 46eef46 commit b5c08dc7b19295b7c0a949d44dededc0650f81a6
Showing with 5 additions and 2 deletions.
  1. +1 −1 package.json
  2. +4 −1 src/Transactions.js
@@ -2,7 +2,7 @@
"name": "jssip",
"title": "JsSIP",
"description": "the Javascript SIP library",
"version": "0.3.1-devel",
"version": "0.3.2-devel",
"homepage": "http://jssip.net",
"author": "José Luis Millán <jmillan@aliax.net>",
"contributors": [
@@ -139,7 +139,10 @@ var InviteClientTransactionPrototype = function() {
window.clearTimeout(this.D);
window.clearTimeout(this.M);
delete this.request_sender.ua.transactions.ict[this.id];
this.request_sender.onTransportError();

if (this.state !== C.STATUS_ACCEPTED) {
this.request_sender.onTransportError();
}
};

// RFC 6026 7.2

0 comments on commit b5c08dc

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