From f80429ef7a8a9547dd08602a70a9587a0308429b Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 4 Aug 2015 22:22:42 +0200 Subject: [PATCH] Don't thread before daemonising. --- plexpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 4adf0682..9aed1e01 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -165,7 +165,7 @@ def initialize(config_file): # Refresh the users list on startup if CONFIG.PMS_TOKEN and CONFIG.REFRESH_USERS_ON_STARTUP: - threading.Thread(target=plextv.refresh_users).start() + plextv.refresh_users() # Store the original umask UMASK = os.umask(0)