From 348fa6774e72a87a235051a4769d0af2ebf53db3 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 00:41:27 -0400 Subject: [PATCH] Move the sleep? --- VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 5d2b955a..9097c0b4 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -14,6 +14,7 @@ class VMInstance: self.hypervisor = None self.state = None self.dom = None + sleep(0.5) # Watch for changes to the hypervisor field in Zookeeper @zk.DataWatch(self.zkey + '/hypervisor') @@ -40,7 +41,6 @@ class VMInstance: if dom == None: try: - sleep(0.5) self.zk.set(self.zkey + '/status', 'stop'.encode('ascii')) except: pass