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:
parent
c457364321
commit
6cbf732e1a
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ failed:
|
||||||
|
|
||||||
// to improve performance, donot sleep when interval is zero.
|
// to improve performance, donot sleep when interval is zero.
|
||||||
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/237
|
// @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);
|
st_usleep(cycle_interval_us);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue