epggrab: remove epggrab_running check from _epggrab_socket_thread()

... otherwise the loop will be terminated before epggrab_running is set to 1 at startup
This commit is contained in:
Jaroslav Kysela 2014-08-15 12:27:36 +02:00
parent 59242268bd
commit 1dc009a94d

View file

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