mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
修复bug
This commit is contained in:
@@ -348,21 +348,6 @@ void MediaSource::unregisted(){
|
||||
_strApp,
|
||||
_strId,
|
||||
*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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user