1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine is_alive code

This commit is contained in:
winlin 2021-02-03 18:58:07 +08:00
parent aeca278de0
commit 4bcfce7ff1
2 changed files with 8 additions and 2 deletions

View file

@ -2199,7 +2199,7 @@ srs_error_t SrsRtcConnection::start_publish(std::string stream_uri)
bool SrsRtcConnection::is_alive()
{
return last_stun_time + session_timeout < srs_get_system_time();
return last_stun_time + session_timeout > srs_get_system_time();
}
void SrsRtcConnection::alive()