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 5be7ee5 commit 2bfc4e0Copy full SHA for 2bfc4e0
vllm/entrypoints/context.py
@@ -315,6 +315,9 @@ async def __aenter__(self):
315
async with self._reference_count_lock:
316
self._reference_count += 1
317
if self._async_exit_stack is None:
318
+ assert (self._reference_count == 1
319
+ ), "Reference count of exit stack should be "
320
+ "1 when initializing exit stack."
321
self._async_exit_stack = AsyncExitStack()
322
await self._async_exit_stack.__aenter__()
323
return self
0 commit comments