From 9dc6bf850afece8e66b6c65aa8c5a81ee51005d7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 2 Nov 2018 08:20:46 +0100 Subject: WebRTC: Drop DataChannelListener on Destroy(). --- netwerk/sctp/datachannel/DataChannel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'netwerk') diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index f2a91c589..ebc430f8c 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -276,6 +276,7 @@ DataChannelConnection::Destroy() LOG(("Deregistered %p from the SCTP stack.", static_cast(this))); } + mListener = nullptr; // Finish Destroy on STS thread to avoid bug 876167 - once that's fixed, // the usrsctp_close() calls can move back here (and just proxy the // disconnect_all()) -- cgit v1.2.3