mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
supplement to 77ca322a17c11ed647d27f17e386b996d47120d3
Origin commit data
------------------
Commit: 3bff299f60
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2018-02-14 (Wed, 14 Feb 2018)
This commit is contained in:
@@ -1492,7 +1492,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