This reverts previous commit.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/qemu/qemu_hotplug.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 0caf75659c..574477e916 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -82,12 +82,8 @@ static inline int
qemuDomainDeleteDevice(qemuMonitorPtr mon,
const char *alias)
{
- if (qemuMonitorDelDevice(mon, alias) < 0) {
- virObjectUnlock(mon);
- sleep(10);
- virObjectLock(mon);
+ if (qemuMonitorDelDevice(mon, alias) < 0)
return -1;
- }
return 0;
}
--
2.19.2