Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
main: shuffle epg_in_load
  • Loading branch information
perexg committed May 7, 2015
1 parent 2916996 commit c05806c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/epgdb.c
Expand Up @@ -186,7 +186,6 @@ void epg_init ( void )
}

/* Process */
epg_in_load = 1;
memset(&stats, 0, sizeof(stats));
while ( remain > 4 ) {

Expand Down Expand Up @@ -223,7 +222,6 @@ void epg_init ( void )
/* Cleanup */
htsmsg_destroy(m);
}
epg_in_load = 0;

free(sect);

Expand Down
3 changes: 3 additions & 0 deletions src/main.c
Expand Up @@ -962,6 +962,8 @@ main(int argc, char **argv)
* Initialize subsystems
*/

epg_in_load = 1;

tvhthread_create(&tasklet_tid, NULL, tasklet_thread, NULL);

dbus_server_init(opt_dbus, opt_dbus_session);
Expand Down Expand Up @@ -1037,6 +1039,7 @@ main(int argc, char **argv)
bonjour_init();

epg_updated(); // cleanup now all prev ref's should have been created
epg_in_load = 0;

pthread_mutex_unlock(&global_lock);

Expand Down

0 comments on commit c05806c

Please sign in to comment.