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