From b260a3d682256b5b7eee47ad7b33b16acfd57b5e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 12 Jun 2025 10:20:28 +0200 Subject: dbussy.SystemdJobWaiter: drop references to removed jobs as soon as we can --- linuxnamespaces/systemd/dbussy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'linuxnamespaces/systemd') diff --git a/linuxnamespaces/systemd/dbussy.py b/linuxnamespaces/systemd/dbussy.py index 47c375a..60b74fc 100644 --- a/linuxnamespaces/systemd/dbussy.py +++ b/linuxnamespaces/systemd/dbussy.py @@ -52,6 +52,7 @@ class SystemdJobWaiter: try: return self.jobs_removed[job] except KeyError: + self.jobs_removed.clear() return await asyncio.wait_for(self.job_done, timeout) def __exit__(self, *exc_info: typing.Any) -> None: -- cgit v1.2.3