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:
parent
27b85c7390
commit
f7faa13dc5
3 changed files with 40 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue