coscmd icon indicating copy to clipboard operation
coscmd copied to clipboard

tqdm in coscmd is not thread-safe

Open xiacunshun opened this issue 4 years ago • 3 comments

When i try to download images with coscmd, it usually stuck. Then I add some output in the progress, it turns out that the program always stop at self._pbar.update(chunk_len). So I remove the tqdm, and it fixed.

I guess because the tqdm is not thread-safe, when multi-thread runs.

xiacunshun avatar Jul 09 '20 09:07 xiacunshun

image

xiacunshun avatar Jul 09 '20 09:07 xiacunshun

image

xiacunshun avatar Jul 09 '20 09:07 xiacunshun

Thanks for your advice, I'll fix it soon

lewzylu avatar Jul 09 '20 09:07 lewzylu