统一代码风格

This commit is contained in:
xiongziliang
2020-12-27 21:21:31 +08:00
parent 3a0fa27198
commit 61b29efe94
3 changed files with 7 additions and 5 deletions

View File

@@ -135,8 +135,10 @@ void RtpProcess::addTrackCompleted() {
}
bool RtpProcess::alive() {
if(_stop_rtp_check.load())
if (_stop_rtp_check.load()) {
return true;
}
GET_CONFIG(int, timeoutSec, RtpProxy::kTimeoutSec)
if (_last_frame_time.elapsedTime() / 1000 < timeoutSec) {
return true;