mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
revert >try to fix segfault on TDT time sync< , this dont work ok on all transponders
This commit is contained in:
@@ -1488,13 +1488,10 @@ void CTimeThread::run()
|
|||||||
#else
|
#else
|
||||||
int64_t start = time_monotonic_ms();
|
int64_t start = time_monotonic_ms();
|
||||||
/* speed up shutdown by looping around Read() */
|
/* speed up shutdown by looping around Read() */
|
||||||
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);
|
||||||
DMX::unlock();
|
|
||||||
#endif
|
#endif
|
||||||
xprintf("%s: get DVB time ch 0x%012" PRIx64 " rc: %d neutrino_sets_time %d\n",
|
xprintf("%s: get DVB time ch 0x%012" PRIx64 " rc: %d neutrino_sets_time %d\n",
|
||||||
name.c_str(), current_service, rc, messaging_neutrino_sets_time);
|
name.c_str(), current_service, rc, messaging_neutrino_sets_time);
|
||||||
|
Reference in New Issue
Block a user