summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/kvmd/sysunit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/apps/kvmd/sysunit.py b/kvmd/apps/kvmd/sysunit.py
index b967aa58..11207230 100644
--- a/kvmd/apps/kvmd/sysunit.py
+++ b/kvmd/apps/kvmd/sysunit.py
@@ -75,6 +75,10 @@ class SystemdUnitInfo:
async def close(self) -> None:
try:
if self.__bus is not None:
+ try:
+ await self.__manager.call_get_default_target()
+ except:
+ pass
self.__bus.disconnect()
await self.__bus.wait_for_disconnect()
except Exception: