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

fix #195: remove the confuse code st_usleep(0). 2.0.13.

This commit is contained in:
winlin 2014-11-11 13:40:09 +08:00
parent 4f34ac022f
commit 46330dd196
6 changed files with 2 additions and 21 deletions

View file

@ -608,9 +608,6 @@ int SrsRtmpConn::playing(SrsSource* source)
return ret;
}
}
// switch to other threads, to anti dead loop.
st_usleep(0);
}
return ret;
@ -668,9 +665,6 @@ int SrsRtmpConn::do_fmle_publishing(SrsSource* source)
}
while (true) {
// switch to other st-threads.
st_usleep(0);
SrsMessage* msg = NULL;
if ((ret = rtmp->recv_message(&msg)) != ERROR_SUCCESS) {
srs_error("fmle recv identify client message failed. ret=%d", ret);
@ -774,9 +768,6 @@ int SrsRtmpConn::do_flash_publishing(SrsSource* source)
}
while (true) {
// switch to other st-threads.
st_usleep(0);
SrsMessage* msg = NULL;
if ((ret = rtmp->recv_message(&msg)) != ERROR_SUCCESS) {
if (!srs_is_client_gracefully_close(ret)) {