Author: xor
Date: 2008-11-16 18:46:09 +0000 (Sun, 16 Nov 2008)
New Revision: 23656
Modified:
trunk/plugins/WoT/IdentityInserter.java
Log:
Mark the identity as inserted *after* the insert was successful.
Modified: trunk/plugins/WoT/IdentityInserter.java
===================================================================
--- trunk/plugins/WoT/IdentityInserter.java 2008-11-16 18:14:23 UTC (rev
23655)
+++ trunk/plugins/WoT/IdentityInserter.java 2008-11-16 18:46:09 UTC (rev
23656)
@@ -197,9 +197,6 @@
mInserts.add(pu);
}
tempB = null;
-
- // We set the date now, so if the identity is modified
during the insert, we'll insert it again next time
- identity.setLastInsert(new Date());
Logger.debug(this, "Started insert of identity '" +
identity.getNickName() + "'");
}
@@ -229,6 +226,7 @@
try {
OwnIdentity identity = OwnIdentity.getByURI(db,
state.getURI());
identity.setEdition(state.getURI().getSuggestedEdition());
+ identity.setLastInsert(new Date()); /* FIXME: check
whether the identity was modified during the insert and re-insert if it was */
db.store(identity);
db.commit();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs