1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-29 21:52:54 +00:00

check isAlive for all the threads before calling join

This commit is contained in:
Ravi 2011-07-11 00:20:47 -04:00
parent 9ad8976d74
commit 23d09bfa5d

View file

@ -3055,8 +3055,9 @@ if __name__ == '__main__':
#wait for download threads to terminate
if downloadparallel > 0:
for threadcount in xrange(downloadparallel):
while True:
if( not threads[0].isAlive()):
if( not threads[threadcount].isAlive()):
break
time.sleep(1)
for threadcount in xrange(downloadparallel):