winlin

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

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