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:
Jacek Jendrzej
2018-02-14 21:58:22 +01:00
committed by vanhofen
parent 5c20cefec6
commit 1f2e1d5524

View File

@@ -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();