mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix session remove bug
This commit is contained in:
parent
471bb0914f
commit
6dfeb686bf
2 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ void SrsRtcServer::check_and_clean_timeout_session()
|
|||
session->switch_to_context();
|
||||
|
||||
srs_trace("rtc session=%s, STUN timeout", session->id().c_str());
|
||||
map_username_session.erase(iter++);
|
||||
iter = map_username_session.erase(iter);
|
||||
map_id_session.erase(session->peer_id());
|
||||
|
||||
if (handler) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue