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:
parent
aeca278de0
commit
4bcfce7ff1
2 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue