Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never close the RTCPeerConnection if setting a local/remote description fails (issue #364) #552

Merged
merged 1 commit into from Mar 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 5 additions & 24 deletions webrtc.html
Expand Up @@ -688,38 +688,19 @@ <h4>Operation</h4>
"#widl-RTCSessionDescription-type">type</a></code> is wrong for
the current <a>signaling state</a> of
<var>connection</var>, then reject <var>p</var> with a <code>InvalidStateError</code> and abort these steps.</p>
</li>

<li>
<p>If the content of <var>description</var> is invalid,
then reject <var>p</var> with an
<code>InvalidAccessError</code> and abort these
steps.</p>
</li>

<li>
<p>If <var>description</var> cannot be applied at the media
layer, but the User Agent recovered, possibly by rolling back
to the previous configuration, then reject <var>p</var> with
<code>OperationError</code> and abort
these steps.</p>

<p>This occurs, for example, when the version of
<var>description</var> is older than the one currently
being used.</p>
</li>

<li>
<p>Otherwise, set <var>connection</var>'s <a>signaling state</a> to
<code>closed</code>.</p>
</li>

<li>
<p>Fire a simple event named <code><a href=
"#event-signalingstatechange">signalingstatechange</a></code>
at <var>connection</var>.</p>
</li>

<li>
<p>Reject <var>p</var> with <code>OperationError</code>.</p>
<p>For all other errors, for example if
<var>description</var> cannot be applied at the media layer,
reject <var>p</var> with <code>OperationError</code>.</p>
</li>
</ol>
</li>
Expand Down