From 09aa67d3b01f8bfff80cf908642e43dfd45cedcd Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 30 Sep 2010 21:26:09 +0200 Subject: [PATCH] Remove DB handle from main thread No longer needed by the player during init. --- src/main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main.c b/src/main.c index 311cb780..15e99305 100644 --- a/src/main.c +++ b/src/main.c @@ -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) @@ -746,8 +736,6 @@ main(int argc, char **argv) dispatch_resume(chld_src); - db_perthread_deinit(); - dispatch_main(); startup_fail: