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

for bug #237, thread donot sleep when timeout is 0.

This commit is contained in:
winlin 2014-12-03 14:25:02 +08:00
parent c457364321
commit 6cbf732e1a

View file

@ -182,7 +182,7 @@ failed:
// to improve performance, donot sleep when interval is zero.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/237
if (cycle_interval_us > 0) {
if (cycle_interval_us != 0) {
st_usleep(cycle_interval_us);
}
}