mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-09 22:58:34 +02:00
supplement to 77ca322a17
This commit is contained in:
@@ -1490,6 +1490,7 @@ void CTimeThread::run()
|
|||||||
/* speed up shutdown by looping around Read() */
|
/* speed up shutdown by looping around Read() */
|
||||||
DMX::lock();
|
DMX::lock();
|
||||||
do {
|
do {
|
||||||
|
if (DMX::isOpen())
|
||||||
rc = dmx->Read(static_buf, MAX_SECTION_LENGTH, timeoutInMSeconds / 12);
|
rc = dmx->Read(static_buf, MAX_SECTION_LENGTH, timeoutInMSeconds / 12);
|
||||||
} while (running && rc == 0
|
} while (running && rc == 0
|
||||||
&& (time_monotonic_ms() - start) < (int64_t)timeoutInMSeconds);
|
&& (time_monotonic_ms() - start) < (int64_t)timeoutInMSeconds);
|
||||||
|
Reference in New Issue
Block a user