Skip to content

Commit

Permalink
Remove DB handle from main thread
Browse files Browse the repository at this point in the history
No longer needed by the player during init.
  • Loading branch information
jblache committed Sep 11, 2011
1 parent 67107ce commit 09aa67d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,16 +603,6 @@ main(int argc, char **argv)
goto startup_fail;
}

/* Open a DB connection for the main thread */
ret = db_perthread_init();
if (ret < 0)
{
DPRINTF(E_FATAL, L_MAIN, "Could not perform perthread DB init for main\n");

shutdown_plan = SHUTDOWN_FAIL_DB;
goto startup_fail;
}

/* Spawn file scanner thread */
ret = filescanner_init();
if (ret != 0)
Expand Down Expand Up @@ -746,8 +736,6 @@ main(int argc, char **argv)

dispatch_resume(chld_src);

db_perthread_deinit();

dispatch_main();

startup_fail:
Expand Down

0 comments on commit 09aa67d

Please sign in to comment.