mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-21 01:13:37 +08:00
修复bug
This commit is contained in:
parent
53ba766c2a
commit
daf87dea93
@ -974,6 +974,7 @@ void RtspSession::findStream(const function<void(bool)> &cb) {
|
||||
NoticeCenter::Instance().addListener(task_id, Broadcast::kBroadcastMediaChanged, onRegist);
|
||||
//5秒后执行失败回调
|
||||
doDelay(5, [cb]() {
|
||||
NoticeCenter::Instance().delListener(task_id,Broadcast::kBroadcastMediaChanged);
|
||||
cb(false);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user