diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-06-12 10:20:28 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-06-12 10:20:28 +0200 |
commit | b260a3d682256b5b7eee47ad7b33b16acfd57b5e (patch) | |
tree | 1182c876a43459c2746e28ce6340fcbc5f15e45d /linuxnamespaces/systemd | |
parent | bb6465ac7f68823e63fe53b135e5493906043af5 (diff) | |
download | python-linuxnamespaces-b260a3d682256b5b7eee47ad7b33b16acfd57b5e.tar.gz |
dbussy.SystemdJobWaiter: drop references to removed jobs as soon as we can
Diffstat (limited to 'linuxnamespaces/systemd')
-rw-r--r-- | linuxnamespaces/systemd/dbussy.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |