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