Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: delay internal grabbers by 120 seconds on init
I detected some strange memory allocation errors. Yes, it's workaround
but valgrind cannot detect anything suspicious. It's hardly realtime
consequence.
  • Loading branch information
perexg committed Nov 24, 2015
1 parent cae3296 commit 9c60087
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/epggrab.c
Expand Up @@ -94,6 +94,14 @@ static void* _epggrab_internal_thread ( void* p )
ts.tv_nsec = 0;
time(&ts.tv_sec);

/* Time for other jobs */
t = dispatch_clock + 120;
while (epggrab_running) {
if (t < dispatch_clock)
break;
usleep(200000);
}

while (epggrab_running) {

/* Check for config change */
Expand Down

0 comments on commit 9c60087

Please sign in to comment.