Author: xor
Date: 2008-11-11 09:19:23 +0000 (Tue, 11 Nov 2008)
New Revision: 23478

Modified:
   trunk/plugins/WoT/WoT.java
Log:
Use the new interface of IdentityFetcher: It stores which identities are 
already being fetched.

Modified: trunk/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/WoT.java  2008-11-11 09:15:23 UTC (rev 23477)
+++ trunk/plugins/WoT/WoT.java  2008-11-11 09:19:23 UTC (rev 23478)
@@ -115,6 +115,8 @@
                // Create the fetcher
                fetcher = new IdentityFetcher(db, client);
                
+               fetcher.fetch(seed, false);
+               
                // Try to fetch all known identities
                ObjectSet<Identity> identities = Identity.getAllIdentities(db);
                while (identities.hasNext()) {
@@ -793,8 +795,7 @@
                                try {
                                        // Create the seed identity
                                        seed = new Identity(new 
FreenetURI(seedURI), null, true);
-                                       // Step down to previous edition as the 
Fetcher is gonna try to fetch next edition
-                                       
seed.setEdition(seed.getRequestURI().getSuggestedEdition() - 1);
+                                       
seed.setEdition(seed.getRequestURI().getSuggestedEdition());
                                } catch (Exception e1) { // Should never happen
                                        Logger.error(this, "Seed identity 
creation error", e);
                                        return null;

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

Reply via email to