Skip to content

Commit 4958996

Browse files
committed
correct async lock
1 parent eabf87f commit 4958996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

robotcode/utils/async_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,9 @@ async def acquire(self) -> bool:
609609
finally:
610610
self._waiters.remove(fut)
611611
except asyncio.CancelledError:
612-
if not self._locked:
613-
self._wake_up_first()
612+
async with self.__inner_lock():
613+
if not self._locked:
614+
self._wake_up_first()
614615
raise
615616

616617
async with self.__inner_lock():

0 commit comments

Comments
 (0)