From f29352b864209e5fc21d24a4ca10a49a36936867 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Sun, 16 Nov 2014 18:30:44 +0100 Subject: [PATCH] Reverse open browser and background thread start. --- Headphones.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Headphones.py b/Headphones.py index 12ee7d47..a6df478f 100755 --- a/Headphones.py +++ b/Headphones.py @@ -188,13 +188,14 @@ def main(): } webstart.initialize(web_config) + # Start the background threads + headphones.start() + + # Open webbrowser if headphones.CONFIG.LAUNCH_BROWSER and not args.nolaunch: headphones.launch_browser(headphones.CONFIG.HTTP_HOST, http_port, headphones.CONFIG.HTTP_ROOT) - # Start the background threads - headphones.start() - # Wait endlessy for a signal to happen while True: if not headphones.SIGNAL: