Reverse open browser and background thread start.

This commit is contained in:
Bas Stottelaar
2014-11-16 18:30:44 +01:00
parent 2ca60b09d4
commit f29352b864

View File

@@ -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: