Closed binxie33 closed 2 years ago
does it actually crash currently?
This should not be needed, otherwise we won't get the 'close' state changed from the underlaying datachannel.
More than that, if we get events from the underlaying datachannel after closing it, that would be a but in libwebrtc.
In DataConsumer::Close() we should UnregisterObserver first before closing, otherwise it will crash.