修复bug

This commit is contained in:
xiongziliang 2019-12-04 19:19:03 +08:00
parent 33047ddc94
commit 6eb4d5916d

View File

@ -348,21 +348,6 @@ void MediaSource::unregisted(){
_strApp, _strApp,
_strId, _strId,
*this); *this);
weak_ptr<MediaSource> weakPtr = shared_from_this();
EventPollerPool::Instance().getPoller()->async([weakPtr,this](){
auto strongPtr = weakPtr.lock();
if (!strongPtr) {
return;
}
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastMediaChanged,
true,
_strSchema,
_strVhost,
_strApp,
_strId,
*this);
},false);
} }