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 69328fa commit a28b757Copy full SHA for a28b757
mautrix/util/simple_lock.py
@@ -47,7 +47,7 @@ def locked(self) -> bool:
47
return not self.noop_mode and not self._event.is_set()
48
49
async def wait(self, task: str | None = None) -> None:
50
- if not self.noop_mode and not self._event.is_set():
+ if self.locked:
51
if self.log and self.message:
52
self.log.debug(self.message, task)
53
await self._event.wait()
0 commit comments