locking for windows (XP) partly debugged. ClientsFileTest watchers do not behave...
[vamsas.git] / src / org / vamsas / client / simpleclient / SimpleClientAppdata.java
index a2d8912..95362aa 100644 (file)
@@ -343,8 +343,7 @@ public class SimpleClientAppdata implements IClientAppdata {
       apdfile.lockFile();
       // LATER: Refactor these local AppDatastream IO stuff to their own class.
       JarOutputStream dstrm = 
-        new JarOutputStream(
-            new BufferedOutputStream(new java.io.FileOutputStream(apdfile.sessionFile)));
+        new JarOutputStream(apdfile.fileLock.getBufferedOutputStream(true));
       if (!clientOrUser) {
         newAppDataStream = dstrm;
       } else {