Skip to content

Commit

Permalink
Fix #99. Do not close the RTCSession if it has been accepted and the …
Browse files Browse the repository at this point in the history
…WS disconnects
  • Loading branch information
jmillan committed Jun 12, 2013
1 parent 46eef46 commit b5c08dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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.1-devel",
"version": "0.3.2-devel",
"homepage": "http://jssip.net",
"author": "José Luis Millán <jmillan@aliax.net>",
"contributors": [
Expand Down
5 changes: 4 additions & 1 deletion src/Transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5c08dc

Please sign in to comment.