diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index 2428623b52cb750a47936a5f650c1cb9ad2d0bda..1bae3d65a3fd4f2148c105567b7b04092a165c45 100644 --- a/src/libxl/libxl_driver.c +++ b/src/libxl/libxl_driver.c @@ -1117,7 +1117,7 @@ libxlReconnectDomain(virDomainObjPtr vm, out: libxlVmCleanup(driver, vm, VIR_DOMAIN_SHUTOFF_UNKNOWN); if (!vm->persistent) - virDomainObjListRemove(driver->domains, vm); + virDomainObjListRemoveLocked(driver->domains, vm); else virObjectUnlock(vm);