mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-03 22:30:31 +03:00
Merge pull request #350 from xxDark/hotfix/5.0.11
[FIX] wait() без синхронизации
This commit is contained in:
commit
ea92e644f4
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ public void download(String base, List<DownloadTask> applies, Path dstDirFile, D
|
||||||
for(int i=0;i<THREADS;++i)
|
for(int i=0;i<THREADS;++i)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
threads[i].wait();
|
threads[i].join();
|
||||||
if(excRef.get() != null)
|
if(excRef.get() != null)
|
||||||
{
|
{
|
||||||
Exception ex = excRef.get();
|
Exception ex = excRef.get();
|
||||||
|
@ -275,4 +275,4 @@ public static void transfer(InputStream input, Path file, String filename, long
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue