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

merge from srs2

This commit is contained in:
winlin 2015-11-05 14:48:25 +08:00
commit 97f5bb8b99
5 changed files with 5 additions and 2 deletions

View file

@ -105,11 +105,12 @@ namespace internal
return ret;
}
disposed = false;
// we set to loop to true for thread to run.
loop = true;
// wait for cid to ready, for parent thread to get the cid.
while (_cid < 0 && loop) {
while (_cid < 0) {
st_usleep(10 * 1000);
}
@ -129,6 +130,8 @@ namespace internal
dispose();
_cid = -1;
can_run = false;
tid = NULL;
}