From: <ka...@us...> - 2008-04-27 13:37:17
|
Revision: 3047 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3047&view=rev Author: kappa1 Date: 2008-04-27 06:37:00 -0700 (Sun, 27 Apr 2008) Log Message: ----------- switch caching off globally instead of on a per connection bases. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2008-04-25 17:21:59 UTC (rev 3046) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2008-04-27 13:37:00 UTC (rev 3047) @@ -726,6 +726,7 @@ // 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 @@ 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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |