Merge pull request #350 from xxDark/hotfix/5.0.11

[FIX] wait() без синхронизации
This commit is contained in:
Gravit 2019-12-31 17:23:15 +07:00 committed by GitHub
commit ea92e644f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ public void download(String base, List<DownloadTask> applies, Path dstDirFile, D
for(int i=0;i<THREADS;++i)
{
try {
threads[i].wait();
threads[i].join();
if(excRef.get() != null)
{
Exception ex = excRef.get();
@ -275,4 +275,4 @@ public static void transfer(InputStream input, Path file, String filename, long
}
}
}
}
}