diff options
author | David Sommerseth <davids@redhat.com> | 2012-12-07 19:25:17 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-12-07 19:25:17 +0100 |
commit | e4ca831bf2d23065665e1603ddca2f033a8285a2 (patch) | |
tree | a3f30fa6c24fcde59fe9ccb9af2459f5ee9ed99f | |
parent | 1f58fed0848c7cf9c48a5187d244536659b2bd92 (diff) | |
download | rteval-e4ca831bf2d23065665e1603ddca2f033a8285a2.tar.gz rteval-e4ca831bf2d23065665e1603ddca2f033a8285a2.tar.xz rteval-e4ca831bf2d23065665e1603ddca2f033a8285a2.zip |
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__.py | 3 |
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) |