Eh I'm so stupid. Epic bug with DataDownloader fixed (it won't truncate files anymore) - now I can remove all manual CRC checks.

This commit is contained in:
pelya
2010-08-21 12:24:23 +03:00
parent 1b70a84cff
commit 316b1385da

View File

@@ -293,9 +293,10 @@ class DataDownloader extends Thread
try {
int len = zip.read(buf);
while (len > 0)
while (len >= 0)
{
out.write(buf, 0, len);
if(len > 0)
out.write(buf, 0, len);
len = zip.read(buf);
percent = "";