Make sure that .fbs files are not used from cache - this is because a disruption in connectivity will cause an incomplete .fbs file, and java will attempt to use this incomplete .fbs file if caching is on.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2547 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/RfbProto.java b/java/src/com/tightvnc/rfbplayer/RfbProto.java
index c603148..df26019 100644
--- a/java/src/com/tightvnc/rfbplayer/RfbProto.java
+++ b/java/src/com/tightvnc/rfbplayer/RfbProto.java
@@ -96,7 +96,13 @@
   public void newSession(URL url) throws Exception {
     if (fbs != null)
       fbs.close();
-    fbs = new FbsInputStream(url.openStream());
+
+    // open the connection, making sure that it does not use
+    // a cached version of the archive
+    URLConnection connection = url.openConnection();
+    connection.setUseCaches(false);
+
+    fbs = new FbsInputStream(connection.getInputStream());
     is = new DataInputStream(fbs);
 
     readVersionMsg();