if (qemuDomainMasterKeyReadFile(priv) < 0)
goto error;
- virNWFilterReadLockFilterUpdates();
-
VIR_DEBUG("Reconnect monitor to %p '%s'", obj, obj->def->name);
/* XXX check PID liveliness & EXE path */
memcpy(data, src, sizeof(*data));
data->obj = obj;
+ virNWFilterReadLockFilterUpdates();
+
/* this lock and reference will be eventually transferred to the thread
* that handles the reconnect */
virObjectLock(obj);
qemuDomainRemoveInactive(src->driver, obj);
virDomainObjEndAPI(&obj);
+ virNWFilterUnlockFilterUpdates();
virObjectUnref(data->conn);
VIR_FREE(data);
return -1;