Appletloader: fix caching issue with native jars

This commit is contained in:
kappa1 2010-07-11 13:54:52 +00:00
parent f5eae9c5ca
commit 1ba3f0197b
1 changed files with 6 additions and 1 deletions

View File

@ -544,7 +544,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
case STATE_DETERMINING_PACKAGES:
return "Determining packages to load";
case STATE_CHECKING_CACHE:
return "Calculate download size and check cache";
return "Calculating download size";
case STATE_DOWNLOADING:
return "Downloading packages";
case STATE_EXTRACTING_PACKAGES:
@ -1286,6 +1286,11 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
*/
protected void extractNatives(String path) throws Exception {
// if no new native jar was downloaded, no extracting needed
if (fileSizes[fileSizes.length-1] == -2) {
return;
}
state = STATE_EXTRACTING_PACKAGES;
int initialPercentage = percentage;