AioExclusiveRegion API is sync now

This commit is contained in:
Maxim Devaev
2024-10-26 15:51:33 +03:00
parent 399712c684
commit a84242c9bc
5 changed files with 23 additions and 23 deletions

View File

@@ -191,7 +191,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
@aiotools.atomic_fg
async def __click(self, name: str, pin: int, delay: float, wait: bool) -> None:
if wait:
async with self.__region:
with self.__region:
await self.__inner_click(name, pin, delay)
else:
await aiotools.run_region_task(