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: