From ad2e625db03a1c2e9c17ed26ad7ba838a1374c92 Mon Sep 17 00:00:00 2001 From: Adam Bergkvist Date: Thu, 17 Mar 2016 11:28:25 +0100 Subject: [PATCH] Never close the RTCPeerConnection if setting a local/remote description fails --- webrtc.html | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/webrtc.html b/webrtc.html index eca14c277..4b6d1e16b 100644 --- a/webrtc.html +++ b/webrtc.html @@ -688,7 +688,9 @@

Operation

"#widl-RTCSessionDescription-type">type is wrong for the current signaling state of connection, then reject p with a InvalidStateError and abort these steps.

+ +
  • If the content of description is invalid, then reject p with an InvalidAccessError and abort these @@ -696,30 +698,9 @@

    Operation

  • -

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

    - -

    This occurs, for example, when the version of - description is older than the one currently - being used.

    -
  • - -
  • -

    Otherwise, set connection's signaling state to - closed.

    -
  • - -
  • -

    Fire a simple event named signalingstatechange - at connection.

    -
  • - -
  • -

    Reject p with OperationError.

    +

    For all other errors, for example if + description cannot be applied at the media layer, + reject p with OperationError.