Skip to content

Commit

Permalink
fix st_usleep param from us to ms. (#1236)
Browse files Browse the repository at this point in the history
fix st_usleep param from us to ms.
  • Loading branch information
RocFang authored and winlinvip committed Oct 7, 2018
1 parent 9859fa9 commit 768fe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_http_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 768fe68

Please sign in to comment.