diff --git a/bazarr/main.py b/bazarr/main.py index c71f02ba2..fd79d9420 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -205,6 +205,9 @@ def redirect_root(): @custom_auth_basic(check_credentials) def shutdown(): authorize() + doShutdown() + +def doShutdown(): try: server.stop() except: @@ -2215,4 +2218,4 @@ try: args.port) if args.port else str(settings.general.port)) + str(base_url)) server.start() except KeyboardInterrupt: - shutdown() + doShutdown()