We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3c1379 commit 0662fc9Copy full SHA for 0662fc9
sphinx_autobuild/server.py
@@ -28,11 +28,11 @@ def __init__(
28
self.paths = [Path(path).resolve(strict=True) for path in paths]
29
self.ignore = ignore_filter
30
self.change_callback = change_callback
31
- self.flag = asyncio.Event()
32
- self.should_exit = asyncio.Event()
33
34
@asynccontextmanager
35
async def lifespan(self, _app) -> AbstractAsyncContextManager[None]:
+ self.flag = asyncio.Event()
+ self.should_exit = asyncio.Event()
36
task = asyncio.create_task(self.main())
37
yield
38
self.should_exit.set()
0 commit comments