fix a bug in parallel mode

This commit is contained in:
fxsjy 2013-06-21 15:09:27 +08:00
parent c0816b9bb0
commit 7343679ba8

View File

@ -312,7 +312,7 @@ def enable_parallel(processnum):
def disable_parallel():
global pool,cut,cut_for_search
if pool != None:
if 'pool' in globals():
pool.close()
pool = None
cut = __ref_cut