http api新建的rtp服务器可以自动超时移除

This commit is contained in:
xiongziliang
2020-07-08 10:25:30 +08:00
parent e58a63c528
commit b2ff53037b
6 changed files with 47 additions and 2 deletions

View File

@@ -91,7 +91,9 @@ void RtpSelector::onManager() {
continue;
}
WarnL << "RtpProcess timeout:" << it->first;
auto process = it->second->getProcess();
it = _map_rtp_process.erase(it);
process->onDetach();
}
}