clan_vm_manager: Improve VM start and stop switch. Switch will be disabled while stopping vm

This commit is contained in:
Qubasa
2024-02-26 01:04:09 +07:00
parent 98d18dfd25
commit e38aa7b73e
4 changed files with 157 additions and 115 deletions

View File

@@ -30,7 +30,6 @@ class VMAttr:
@contextmanager
def qmp_ctx(self) -> Generator[QEMUMonitorProtocol, None, None]:
if self._qmp is None:
log.debug(f"qmp_socket: {self._qmp_socket}")
rpath = self._qmp_socket.resolve()
if not rpath.exists():
raise ClanError(