diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-14 10:14:17 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-14 10:14:17 +0000 |
commit | fb95b70c12935db9f604e931282a4040fb0b393e (patch) | |
tree | 74908169908068b9abf8f48b2b80aa73c5b36209 | |
parent | 56b0c617c9513514d2587978e86399299444f7ba (diff) | |
download | xen-fb95b70c12935db9f604e931282a4040fb0b393e.tar.gz xen-fb95b70c12935db9f604e931282a4040fb0b393e.tar.bz2 xen-fb95b70c12935db9f604e931282a4040fb0b393e.zip |
xend: Fix wait-for-stubdom loop to avoid possible infinite loop
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r-- | tools/python/xen/xend/image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index db6e6658f6..778c0687e6 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -487,8 +487,8 @@ class ImageHandler: time.sleep(0.1) count += 1 - if count < 100: - continue + if count > 100: + break domains.domains_lock.acquire() |