From daf87dea93cb7989d2d1982dc485ae21287b641a Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 31 Oct 2018 11:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index e723f970..96c139c7 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -974,6 +974,7 @@ void RtspSession::findStream(const function &cb) { NoticeCenter::Instance().addListener(task_id, Broadcast::kBroadcastMediaChanged, onRegist); //5秒后执行失败回调 doDelay(5, [cb]() { + NoticeCenter::Instance().delListener(task_id,Broadcast::kBroadcastMediaChanged); cb(false); }); }