From fae9bc618a0610d08ae7a70a05ec5ba614086615 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 31 Jan 2016 15:13:35 -0800 Subject: [PATCH] Initialize PlexPy after daemonizing --- PlexPy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PlexPy.py b/PlexPy.py index cafb7804..15e3212e 100755 --- a/PlexPy.py +++ b/PlexPy.py @@ -153,12 +153,12 @@ def main(): # Put the database in the DATA_DIR plexpy.DB_FILE = os.path.join(plexpy.DATA_DIR, 'plexpy.db') - # Read config and start logging - plexpy.initialize(config_file) - if plexpy.DAEMON: plexpy.daemonize() + # Read config and start logging + plexpy.initialize(config_file) + # Force the http port if neccessary if args.port: http_port = args.port