Skip to content

Commit

Permalink
Inverting lines according to issue report
Browse files Browse the repository at this point in the history
benoitc/gunicorn#1877 (comment)
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
  • Loading branch information
onekiloparsec committed Aug 6, 2021
1 parent 87da6cf commit 6e336cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvicorn/server.py
Expand Up @@ -242,10 +242,10 @@ async def shutdown(self, sockets=None):
logger.info("Shutting down")

# Stop accepting new connections.
for server in self.servers:
server.close()
for sock in sockets or []:
sock.close()
for server in self.servers:
server.close()
for server in self.servers:
await server.wait_closed()

Expand Down

0 comments on commit 6e336cf

Please sign in to comment.