We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4ac8c commit 1657b89Copy full SHA for 1657b89
src/reactpy/backend/_common.py
@@ -49,9 +49,10 @@ async def serve_development_asgi(
49
50
try:
51
await asyncio.gather(*coros)
52
- except Exception:
53
- if server.started:
54
- await asyncio.wait_for(server.shutdown(), timeout=3)
+ finally:
+ if not server.servers:
+ server.servers = []
55
+ await asyncio.wait_for(server.shutdown(), timeout=3)
56
57
58
async def _check_if_started(server: uvicorn.Server, started: asyncio.Event) -> None:
0 commit comments