mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Use shared ptr in RTC TCP connection. v6.0.127 (#4083)
Fix issue https://github.com/ossrs/srs/issues/3784 --- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
7b9c52b283
commit
242152bd6b
10 changed files with 95 additions and 76 deletions
|
@ -1924,6 +1924,7 @@ std::string SrsRtcConnection::desc()
|
|||
|
||||
void SrsRtcConnection::expire()
|
||||
{
|
||||
// TODO: FIXME: Should set session to expired and remove it by heartbeat checking. Should not remove it directly.
|
||||
_srs_rtc_manager->remove(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue