Skip to content

Commit

Permalink
keep workthreads before all task done
Browse files Browse the repository at this point in the history
  • Loading branch information
dt3310321 committed Dec 5, 2018
1 parent 5299470 commit 25a8277
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qcloud_cos/cos_threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def run(self):
self._ret.append(e)
finally:
self._task_queue.task_done()
if self._task_queue.empty():
break

def get_result(self):
return self._succ_task_num, self._fail_task_num, self._ret
Expand Down

0 comments on commit 25a8277

Please sign in to comment.