BaseServer doesn't have __exit__ in Python < 3.6

This commit is contained in:
Unrud 2018-09-09 15:17:08 +02:00
parent 93c1581e21
commit 6b9fc870c2

View File

@ -325,8 +325,7 @@ def serve(configuration, shutdown_socket=None):
with contextlib.ExitStack() as stack:
for _, server in servers.items():
# close server
stack.push(server)
stack.callback(server.server_close)
while True:
rlist, _, xlist = select.select(
sockets, [], sockets, select_timeout)