From beff8c0527d902e436afe685df87e55af769baac Mon Sep 17 00:00:00 2001 From: PioLing <964472638@qq.com> Date: Tue, 15 Apr 2025 09:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20(#4249)=20#4252?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index b5139bef..a923e6bf 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1191,7 +1191,7 @@ void installWebApi() { auto dst_url = allArgs["dst_url"]; auto retry_count = allArgs["retry_count"].empty() ? -1 : allArgs["retry_count"].as(); - EventPollerPool::Instance().getPoller(false)->async([=](){ + EventPollerPool::Instance().getPoller(false)->async([=]() mutable { addStreamPusherProxy(allArgs["schema"], allArgs["vhost"], allArgs["app"], @@ -1260,7 +1260,7 @@ void installWebApi() { vhost = allArgs["vhost"]; } auto tuple = MediaTuple { vhost, allArgs["app"], allArgs["stream"], "" }; - EventPollerPool::Instance().getPoller(false)->async([=]() { + EventPollerPool::Instance().getPoller(false)->async([=]() mutable { addStreamProxy(tuple, allArgs["url"], retry_count, @@ -1268,7 +1268,7 @@ void installWebApi() { allArgs["rtp_type"], allArgs["timeout_sec"], args, - [invoker,val,headerOut](const SockException &ex,const string &key) mutable{ + [invoker,val,headerOut](const SockException &ex,const string &key) mutable { if (ex) { val["code"] = API::OtherFailed; val["msg"] = ex.what();