1
0
Fork 0
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:
winlin 2020-05-21 20:23:03 +08:00
parent 471bb0914f
commit 6dfeb686bf
2 changed files with 2 additions and 2 deletions

View file

@ -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) {