Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: remove epggrab_running check from _epggrab_socket_thread()
... otherwise the loop will be terminated before epggrab_running is set to 1 at startup
  • Loading branch information
perexg committed Aug 15, 2014
1 parent 5924226 commit 1dc009a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epggrab/module.c
Expand Up @@ -353,7 +353,7 @@ static void *_epggrab_socket_thread ( void *p )
epggrab_module_ext_t *mod = (epggrab_module_ext_t*)p;
tvhlog(LOG_INFO, mod->id, "external socket enabled");

while ( epggrab_running && mod->enabled && mod->sock ) {
while ( mod->enabled && mod->sock ) {
tvhlog(LOG_DEBUG, mod->id, "waiting for connection");
s = accept(mod->sock, NULL, NULL);
if (s <= 0) continue;
Expand Down

0 comments on commit 1dc009a

Please sign in to comment.