mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix a bug in parallel mode
This commit is contained in:
parent
c0816b9bb0
commit
7343679ba8
@ -312,7 +312,7 @@ def enable_parallel(processnum):
|
|||||||
|
|
||||||
def disable_parallel():
|
def disable_parallel():
|
||||||
global pool,cut,cut_for_search
|
global pool,cut,cut_for_search
|
||||||
if pool != None:
|
if 'pool' in globals():
|
||||||
pool.close()
|
pool.close()
|
||||||
pool = None
|
pool = None
|
||||||
cut = __ref_cut
|
cut = __ref_cut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user