[webrtc-pc] Redundant queuing in connection state computations.

jonasesolsson has just created a new issue for https://github.com/w3c/webrtc-pc:

== Redundant queuing in connection state computations.  ==
Quoting the spec:

>When the ICE Agent indicates that the RTCIceTransportState for an RTCIceTransport has changed, the user agent MUST queue a task that runs the following steps:
> ...
> 8. Update the connection state of connection.

> 4.4.1.3 Update the connection state
> An RTCPeerConnection object has an aggregated connection state. Whenever the state of an RTCDtlsTransport or RTCIceTransport changes or when the [[IsClosed]] slot turns true, the user agent MUST update the connection state by queueing a task that runs the following steps:

Here it looks like we are _required_ to queue a task that queues another task. Is that intended? Should we allow the steps in 4.4.1.3 to be run synchronously?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2020 using your GitHub account

Received on Thursday, 1 November 2018 15:19:56 UTC