Author: jflesch
Date: 2007-07-30 12:06:51 +0000 (Mon, 30 Jul 2007)
New Revision: 14440

Modified:
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java
Log:
Remove the 'deleteOnExit', they seem to delete file too soon

Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java   
2007-07-30 11:08:14 UTC (rev 14439)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java   
2007-07-30 12:06:51 UTC (rev 14440)
@@ -149,7 +149,6 @@
                                                                          
identity);

                        fileToInsert = generator.generateXML();
-                       fileToInsert.deleteOnExit();
                }
        }

@@ -227,6 +226,8 @@

                        } else if (put.isFinished() && !put.isSuccessful()) {
                                if (put.getPutFailedCode() != 9) { /* 
!Collision */
+                                       put.deleteObserver(this);
+
                                        Logger.error(this, "Can't insert the 
message on the board '"+
                                                     board.toString()+"' ; 
Code: "+Integer.toString(put.getPutFailedCode()));
                                        waiting = false;

Modified: 
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java   
2007-07-30 11:08:14 UTC (rev 14439)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java   
2007-07-30 12:06:51 UTC (rev 14440)
@@ -447,7 +447,8 @@

                try {
                        tmpFile = File.createTempFile("thaw-", "-message.xml");
-                       tmpFile.deleteOnExit();
+                       /* don't call deleteOnExit() ... seems to have 
non-wanted side effects */
+                       //tmpFile.deleteOnExit();
                } catch(java.io.IOException e) {
                        Logger.error(this, "Can't create temporary file because 
: "+e.toString());
                        return null;


Reply via email to