for bug #237, thread donot sleep when timeout is 0.
This commit is contained in:
parent
c457364321
commit
6cbf732e1a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user