important bug fix (connection exception was causing losing of already retrieved data)

This commit is contained in:
Miroslav Stampar 2011-08-17 22:31:33 +00:00
parent 9d31322f3d
commit 54bcc35ba7

View File

@ -96,6 +96,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
warnMsg = "running in a single-thread mode. This could take a while."
logger.warn(warnMsg)
try:
if numThreads > 1:
if startThreadMsg:
infoMsg = "starting %d threads" % numThreads
@ -124,7 +125,6 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
threads.append(thread)
# And wait for them to all finish
try:
alive = True
while alive:
alive = False