mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 01:02:19 +00:00
fix: if authorizations check are required keyboard interruptions would be swallowed
This commit is contained in:
parent
7c061874fb
commit
908fb55940
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue