peer_connection: avoid crash on shutdown

Change-Id: I3bf4bc4d06202f9c61208be55c78c7b44be52ba3
This commit is contained in:
Sébastien Blin
2020-10-26 16:06:57 -04:00
committed by Adrien Béraud
parent c116a7b436
commit d0f8effd2c

View File

@ -234,6 +234,7 @@ public:
~Impl()
{
ep_->underlyingICE()->setOnShutdown({});
{
std::lock_guard<std::mutex> lk(cbMtx_);
onStateChangeCb_ = {};