Fix Authorization server not properly stopping after flow completes.

CURA-7490
This commit is contained in:
Nino van Hooff 2020-06-09 15:12:26 +02:00
parent c6af6565a3
commit f66e723866
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,7 @@ class LocalAuthorizationServer:
if self._web_server:
try:
self._web_server.shutdown()
self._web_server.server_close()
except OSError:
# OS error can happen if the socket was already closed. We really don't care about that case.