mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 21:47:18 +00:00
qemu: Unlock monitor when connecting to dest qemu fails
When migrating a qemu domain, we enter the monitor, send some commands,
try to connect to destination qemu, send other commands, end exit the
monitor. However, if we couldn't connect to destination qemu we forgot
to exit the monitor.
Bug introduced by commit d9d518b1c8
.
This commit is contained in:
parent
2ccc4a607f
commit
e0d4b0db9e
@ -1624,8 +1624,10 @@ qemuMigrationRun(struct qemud_driver *driver,
|
||||
|
||||
/* connect to the destination qemu if needed */
|
||||
if (spec->destType == MIGRATION_DEST_CONNECT_HOST &&
|
||||
qemuMigrationConnect(driver, vm, spec) < 0)
|
||||
qemuMigrationConnect(driver, vm, spec) < 0) {
|
||||
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
switch (spec->destType) {
|
||||
case MIGRATION_DEST_HOST:
|
||||
|
Loading…
Reference in New Issue
Block a user