From 3e4471e38a3288799f0bf89d0154b4b678aad65f Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 15 Feb 2018 15:03:19 +0100 Subject: [PATCH] revert >try to fix segfault on TDT time sync< , this dont work ok on all transponders Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/aa07f921dfe2f751f8519036e5741a8b7e426037 Author: Jacek Jendrzej Date: 2018-02-15 (Thu, 15 Feb 2018) --- src/eitd/sectionsd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index fcacac4e2..56bef99e7 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -1490,13 +1490,10 @@ void CTimeThread::run() #else int64_t start = time_monotonic_ms(); /* speed up shutdown by looping around Read() */ - DMX::lock(); 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 && (time_monotonic_ms() - start) < (int64_t)timeoutInMSeconds); - DMX::unlock(); #endif 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);