[webrtc-pc] What to do if a RTCPeerConnection gets closed inside a task that fires multiple events? (#2895)

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

== What to do if a RTCPeerConnection gets closed inside a task that fires multiple events? ==
An example is:
```
If selectedCandidatePairChanged is true, [fire an event](https://dom.spec.whatwg.org/#concept-event-fire) named [selectedcandidatepairchange](https://w3c.github.io/webrtc-pc/#event-icetransport-selectedcandidatepairchange) at transport.

If transportIceConnectionStateChanged is true, [fire an event](https://dom.spec.whatwg.org/#concept-event-fire) named [statechange](https://w3c.github.io/webrtc-pc/#event-icetransport-statechange) at transport.
```

The question is whether we should skip firing events if the peer connection gets closed within the task (say as part of selectedcandidatepairchange event listener).

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 24 August 2023 15:08:11 UTC