Merge pull request #810 from smaarn/fix/shutdown-upon-keyboard-interruption-should-not-fail

fix: if authorizations check are required keyboard interruptions woul…
pull/813/head
morpheus65535 5 years ago committed by GitHub
commit 4ad3fbff74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save