rtp超时检测最多暂停5分钟

更新zltoolkit
This commit is contained in:
ziyue
2021-03-16 15:37:34 +08:00
parent 060b654252
commit 51ac93a08c
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ bool RtpProcess::alive() {
}
}
_last_check_alive.elapsedTime();
_last_check_alive.resetTime();
GET_CONFIG(uint64_t, timeoutSec, RtpProxy::kTimeoutSec)
if (_last_frame_time.elapsedTime() / 1000 < timeoutSec) {
return true;