mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
AioExclusiveRegion API is sync now
This commit is contained in:
@@ -185,7 +185,7 @@ class _GpioOutput: # pylint: disable=too-many-instance-attributes
|
||||
@aiotools.atomic_fg
|
||||
async def __run_action(self, wait: bool, name: str, func: Callable, *args: Any) -> None:
|
||||
if wait:
|
||||
async with self.__region:
|
||||
with self.__region:
|
||||
await func(*args)
|
||||
else:
|
||||
await aiotools.run_region_task(
|
||||
|
||||
Reference in New Issue
Block a user