[FIX][EXPERIMENTAL] Скачивание zip архивом

This commit is contained in:
Gravit 2019-05-15 20:02:45 +07:00
parent 2e85180dc1
commit b985ae15a4
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -191,7 +191,7 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro
startTime = Instant.now();
updateState("UnknownFile", 0L, 100);
ListDownloader listDownloader = new ListDownloader();
if(e.zip)
if(e.zip && !adds.isEmpty())
{
listDownloader.downloadZip(e.url, dir, this::updateState, (add) -> totalDownloaded += add);
}