修复bug

This commit is contained in:
xiongziliang 2018-10-31 11:04:01 +08:00
parent 53ba766c2a
commit daf87dea93

View File

@ -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);
});
}