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

fix st_usleep param from us to ms. (#1236)

fix st_usleep param from us to ms.
This commit is contained in:
RocFang 2018-10-08 07:14:14 +08:00 committed by winlin
parent 9859fa9e6f
commit 768fe68ca3

View file

@ -596,7 +596,7 @@ int SrsLiveStream::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
if (count <= 0) {
srs_info("http: sleep %dms for no msg", SRS_CONSTS_RTMP_PULSE_TIMEOUT_US);
// directly use sleep, donot use consumer wait.
st_usleep(mw_sleep);
st_usleep(mw_sleep * 1000);
// ignore when nothing got.
continue;