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

@ -34,6 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class MockSrsConnection : public ISrsConnection
{
public:
// Whether switch the coroutine context when free the object, for special case test.
bool do_switch;
public:
MockSrsConnection();
virtual ~MockSrsConnection();