From ebc1ee2c6e985d66632a6fee4177117fbba73e2e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 28 May 2020 12:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 1 - tests/test_rtp.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 74d63149..2ee5d1f6 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -148,7 +148,6 @@ static inline void addHttpListener(){ NoticeCenter::Instance().addListener(nullptr, Broadcast::kBroadcastHttpRequest, [](BroadcastHttpRequestArgs) { auto it = s_map_api.find(parser.Url()); if (it == s_map_api.end()) { - consumed = false; return; } //该api已被消费 diff --git a/tests/test_rtp.cpp b/tests/test_rtp.cpp index a6b25b58..d5d68511 100644 --- a/tests/test_rtp.cpp +++ b/tests/test_rtp.cpp @@ -58,7 +58,7 @@ static bool loadFile(const char *path){ RtpSelector::Instance().inputRtp(nullptr,rtp,len, &addr,&timeStamp); if(timeStamp_last){ auto diff = timeStamp - timeStamp_last; - if(diff > 0){ + if(diff > 0 && diff < 500){ usleep(diff * 1000); } }