mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
RTC: Use c++98 map.earse
This commit is contained in:
parent
0be9340023
commit
23447dd6e2
1 changed files with 2 additions and 1 deletions
|
@ -454,7 +454,8 @@ void SrsRtcServer::check_and_clean_timeout_session()
|
|||
session->disposing_ = true;
|
||||
zombies_.push_back(session);
|
||||
|
||||
iter = map_username_session.erase(iter);
|
||||
// Use C++98 style: https://stackoverflow.com/a/4636230
|
||||
map_username_session.erase(iter++);
|
||||
map_id_session.erase(session->peer_id());
|
||||
|
||||
if (handler) {
|
||||
|
|
Loading…
Reference in a new issue