Skip to content

Commit

Permalink
fix the agreement termination
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeofblue committed Jun 21, 2023
1 parent 81383db commit 4bb740a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yapapi/agreements_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async def terminate_all(self, reason: dict) -> None:
"""Terminate all agreements."""

async with self._lock:
for agreement_id, agreement in self._agreements.items():
for agreement_id in frozenset(self._agreements):
await self._terminate_agreement(agreement_id, reason)

async def on_agreement_terminated(self, agr_id: str, reason: dict) -> None:
Expand Down

0 comments on commit 4bb740a

Please sign in to comment.