From 6cbf732e1a2ed0a3473bb422207cae70a1fc3e55 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 3 Dec 2014 14:25:02 +0800 Subject: [PATCH] for bug #237, thread donot sleep when timeout is 0. --- trunk/src/app/srs_app_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_thread.cpp b/trunk/src/app/srs_app_thread.cpp index 74dcfeeb4..63110f128 100644 --- a/trunk/src/app/srs_app_thread.cpp +++ b/trunk/src/app/srs_app_thread.cpp @@ -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); } }