diff --git a/bazarr/main.py b/bazarr/main.py index 93079d5d2..2799a7ccf 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -188,7 +188,7 @@ def doShutdown(): else: stop_file.write(str('')) stop_file.close() - sys.exit(0) + os._exit(0) return '' @@ -209,7 +209,7 @@ def restart(): logging.info('Bazarr is being restarted...') restart_file.write(str('')) restart_file.close() - sys.exit(0) + os._exit(0) return '' diff --git a/views/_main.html b/views/_main.html index 37433bdb8..670b79b21 100644 --- a/views/_main.html +++ b/views/_main.html @@ -139,8 +139,8 @@ data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">