1
0
Fork 0
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:
winlin 2020-05-26 18:24:37 +08:00
parent 0be9340023
commit 23447dd6e2

View file

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