diff --git a/src/rtpp_proc_async.c b/src/rtpp_proc_async.c index 3138c039f..39af9726e 100644 --- a/src/rtpp_proc_async.c +++ b/src/rtpp_proc_async.c @@ -234,8 +234,10 @@ rtpp_proc_async_run(void *arg) CALL_METHOD(cf->stable->sessinfo, sync_polltbl, &ptbl_rtp, PIPE_RTP); if (rtp_only == 0) { CALL_METHOD(cf->stable->sessinfo, sync_polltbl, &ptbl_rtcp, PIPE_RTCP); + } nready_rtp = nready_rtcp = 0; if (ptbl_rtp.curlen > 0) { + if (rtp_only == 0) { #if RTPP_DEBUG_netio > 1 RTPP_LOG(cf->stable->glog, RTPP_LOG_DBUG, "run %lld " \ "polling for %d RTCP file descriptors", \