From ed19908f313298b06d215b4c22f68f698593cd29 Mon Sep 17 00:00:00 2001 From: kappa1 Date: Sun, 27 Apr 2008 13:37:00 +0000 Subject: [PATCH] switch caching off globally instead of on a per connection bases. --- src/java/org/lwjgl/util/applet/AppletLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/util/applet/AppletLoader.java b/src/java/org/lwjgl/util/applet/AppletLoader.java index d617d90e..63b31ab4 100644 --- a/src/java/org/lwjgl/util/applet/AppletLoader.java +++ b/src/java/org/lwjgl/util/applet/AppletLoader.java @@ -726,6 +726,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub { // calculate total size of jars to download for (int i = 0; i < urlList.length; i++) { urlconnection = urlList[i].openConnection(); + urlconnection.setDefaultUseCaches(false); totalSizeDownload += urlconnection.getContentLength(); } @@ -737,8 +738,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub { debug_sleep(2000); urlconnection = urlList[i].openConnection(); - urlconnection.setUseCaches(false); - + String currentFile = getFileName(urlList[i]); InputStream inputstream = getJarInputStream(currentFile, urlconnection); FileOutputStream fos = new FileOutputStream(path + currentFile);