WebRTC: Drop DataChannelListener on Destroy().

This commit is contained in:
wolfbeast 2018-11-02 08:20:46 +01:00 committed by Roy Tam
commit 22772136d7

View file

@ -276,6 +276,7 @@ DataChannelConnection::Destroy()
LOG(("Deregistered %p from the SCTP stack.", static_cast<void *>(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())