Author: xor
Date: 2008-11-11 12:44:12 +0000 (Tue, 11 Nov 2008)
New Revision: 23481

Modified:
   trunk/plugins/WoT/IdentityInserter.java
Log:
Only store the identity etc. if the insert was successful.

Modified: trunk/plugins/WoT/IdentityInserter.java
===================================================================
--- trunk/plugins/WoT/IdentityInserter.java     2008-11-11 09:26:12 UTC (rev 
23480)
+++ trunk/plugins/WoT/IdentityInserter.java     2008-11-11 12:44:12 UTC (rev 
23481)
@@ -168,9 +168,7 @@
                        /* FIXME: use nonblocking insert */
                        // Blocking Insert
                        iURI = client.insert(ib, false, "identity.xml");
-               } finally {
-                       tempB.free();           
-               }
+
                
                identity.setEdition(iURI.getSuggestedEdition());
                identity.setLastInsert(new Date());
@@ -180,5 +178,8 @@
                
                // Logging
                Logger.debug(this, "Successful insert of identity '" + 
identity.getNickName() + "'");
+               } finally {
+                       tempB.free();           
+               }
        }
 }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to