[FIX] wait() без синхронизации

This commit is contained in:
Alexey 2019-12-31 13:14:50 +03:00 committed by GitHub
parent 5828885112
commit e28361d1c6
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
}
}
}
}
}