1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Cover connection manager coroutine switch when dispoing conn

This commit is contained in:
winlin 2020-09-17 11:44:16 +08:00
parent 27b85c7390
commit f7faa13dc5
3 changed files with 40 additions and 0 deletions

View file

@ -44,10 +44,14 @@ using namespace std;
MockSrsConnection::MockSrsConnection()
{
do_switch = false;
}
MockSrsConnection::~MockSrsConnection()
{
if (do_switch) {
srs_usleep(0);
}
}
std::string MockSrsConnection::remote_ip()