Sleep while waiting
This commit is contained in:
parent
6aca8f9fee
commit
3e24eab61e
|
@ -135,6 +135,8 @@ class VMInstance:
|
|||
while True:
|
||||
if self.dom == None or self.dom.state() != libvirt.VIR_DOMAIN_RUNNING:
|
||||
try:
|
||||
time.sleep(0.2)
|
||||
print("derp")
|
||||
self.dom = conn.lookupByUUID(uuid.UUID(self.domuuid).bytes)
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue