summaryrefslogtreecommitdiff
path: root/linuxnamespaces/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'linuxnamespaces/systemd')
-rw-r--r--linuxnamespaces/systemd/dbussy.py1
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: