diff --git a/PaddleCV/video/datareader/nonlocal_reader.py b/PaddleCV/video/datareader/nonlocal_reader.py index 8e13c994dc4e16f0ec0a0ad33ac8b811b94682ec..15c0a849e2b31f2d5a79b3bb3852d5c9f18af67c 100644 --- a/PaddleCV/video/datareader/nonlocal_reader.py +++ b/PaddleCV/video/datareader/nonlocal_reader.py @@ -332,7 +332,7 @@ def make_multi_reader(filelist, batch_size, sample_times, is_training, shuffle, else: yield sample for i in range(len(p_list)): - p_list[i].terminate() - p_list[i].join() + if p_list[i].is_alive(): + p_list[i].join() return queue_reader