aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-12-07 19:25:17 +0100
committerDavid Sommerseth <davids@redhat.com>2012-12-07 19:25:17 +0100
commite4ca831bf2d23065665e1603ddca2f033a8285a2 (patch)
treea3f30fa6c24fcde59fe9ccb9af2459f5ee9ed99f
parent1f58fed0848c7cf9c48a5187d244536659b2bd92 (diff)
downloadrteval-e4ca831bf2d23065665e1603ddca2f033a8285a2.tar.gz
Don't wait for a module to complete if it didn't start running
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--rteval/modules/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rteval/modules/__init__.py b/rteval/modules/__init__.py
index 987474a..6daeae7 100644
--- a/rteval/modules/__init__.py
+++ b/rteval/modules/__init__.py
@@ -90,6 +90,9 @@ class rtevalModulePrototype(threading.Thread):
def WaitForCompletion(self, wtime = None):
"Blocks until the module has completed its workload"
+ if not self.shouldStart():
+ # If it hasn't been started yet, nothing to wait for
+ return None
return self.__events["finished"].wait(wtime)