From dbd2d28877a0df57b40035e0ffd721d9c61592d7 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 3 Jul 2020 19:47:57 -0700 Subject: [PATCH] Set macOS menu bar icon thread to daemon --- Tautulli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tautulli.py b/Tautulli.py index c0f36a41..ec7c5b6a 100755 --- a/Tautulli.py +++ b/Tautulli.py @@ -265,7 +265,10 @@ def main(): if plexpy.CONFIG.SYS_TRAY_ICON: # MacOS menu bar icon must be run on the main thread and is blocking # Start the rest of Tautulli on a new thread - threading.Thread(target=wait).start() + thread = threading.Thread(target=wait) + thread.daemon = True + thread.start() + plexpy.MAC_SYS_TRAY_ICON = macos.MacOSSystemTray() plexpy.MAC_SYS_TRAY_ICON.start() else: