Skip to content

Commit 6f95230

Browse files
committed
When closing an asyncio server, stop the handlers
1 parent 986a4e1 commit 6f95230

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/asyncio/base_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ async def serve_forever(self):
381381
except exceptions.CancelledError:
382382
try:
383383
self.close()
384+
self.close_clients()
384385
await self.wait_closed()
385386
finally:
386387
raise

0 commit comments

Comments
 (0)