diff --git a/sectionfilter.c b/sectionfilter.c index 7b94a52..8aa1e39 100644 --- a/sectionfilter.c +++ b/sectionfilter.c @@ -285,7 +285,7 @@ bool cSatipSectionFilterHandler::Send(void) } // anyone ready for writing - if (poll(pollFdsM, eMaxSecFilterCount, 10) <= 0) + if (poll(pollFdsM, eMaxSecFilterCount, eSecFilterSendTimeoutMs) <= 0) return false; // send data diff --git a/sectionfilter.h b/sectionfilter.h index 4d3195d..750538a 100644 --- a/sectionfilter.h +++ b/sectionfilter.h @@ -65,7 +65,8 @@ public: class cSatipSectionFilterHandler : public cThread { private: enum { - eMaxSecFilterCount = 32 + eMaxSecFilterCount = 32, + eSecFilterSendTimeoutMs = 10 }; cRingBufferLinear *ringBufferM; cMutex mutexM;