From 08071f42d0f1592bdc36bffeb4c0f19c0a11ce95 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 26 Dec 2011 14:31:59 +0000 Subject: [PATCH] minor update --- lib/core/threads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/threads.py b/lib/core/threads.py index 7df2a7bc4..27987e11d 100644 --- a/lib/core/threads.py +++ b/lib/core/threads.py @@ -155,8 +155,9 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio print kb.threadContinue = False kb.threadException = True - logger.info("waiting for threads to finish (Ctrl+C was pressed)") + if numThreads > 1: + logger.info("waiting for threads to finish (Ctrl+C was pressed)") try: while (threading.activeCount() > 1): pass