Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fixup! Allow awaiting on locks
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 11, 2023
1 parent 12c1b6d commit 4b657b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/worker_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _wake_deferred(deferred: defer.Deferred) -> None:
deferred.callback(None)

for lock in locks:
self._clock.call_later(0, _wake_deferred, lock.deferred.callback)
self._clock.call_later(0, _wake_deferred, lock.deferred)

@wrap_as_background_process("_cleanup_locks")
async def _cleanup_locks(self) -> None:
Expand Down

0 comments on commit 4b657b9

Please sign in to comment.