From fb95b70c12935db9f604e931282a4040fb0b393e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 14 Jan 2010 10:14:17 +0000 Subject: [PATCH] xend: Fix wait-for-stubdom loop to avoid possible infinite loop Signed-off-by: Keir Fraser --- tools/python/xen/xend/image.py | 4 ++-- 1 file 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() -- 2.39.5