> -----Ursprüngliche Nachricht----- > Von: "Matthew Toseland" <[EMAIL PROTECTED]> > Gesendet: 23.08.08 00:14:35 > An: devl@freenetproject.org > Betreff: Re: [freenet-dev] [freenet-cvs] r21937 - > trunk/apps/WoT/src/plugins/WoT
> On Saturday 16 August 2008 20:21, [EMAIL PROTECTED] wrote: > > Author: saces > > Date: 2008-08-16 19:21:11 +0000 (Sat, 16 Aug 2008) > > New Revision: 21937 > > > > Modified: > > trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java > > Log: > > may better onFailure handling, comments > > > > Modified: trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java > > =================================================================== > > --- trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-08-16 > > 18:57:15 > UTC (rev 21936) > > +++ trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-08-16 > > 19:21:11 > UTC (rev 21937) > > @@ -17,6 +17,7 @@ > > import freenet.client.async.ClientCallback; > > import freenet.client.async.ClientGetter; > > import freenet.keys.FreenetURI; > > +import freenet.support.Logger; > > > > /** > > * @author Julien Cornuwel ([EMAIL PROTECTED]) > > @@ -45,20 +46,26 @@ > > FetchContext fetchContext = client.getFetchContext(); > > fetchContext.maxSplitfileBlockRetries = -1; // retry forever > > fetchContext.maxNonSplitfileRetries = -1; // retry forever > > - client.fetch(uri, -1, this, this, fetchContext); > > + ClientGetter request = client.fetch(uri, -1, this, this, > > fetchContext); > > + // addRequestToList(request); > > } > > > > @Override > > public void onFailure(FetchException e, ClientGetter state) { > > > > - if(e.newURI != null) { // Handle redirection to a new edition > > + if ((e.mode == FetchException.PERMANENT_REDIRECT) || (e.mode == > FetchException.PERMANENT_REDIRECT )) { > > Duhhhh? :) Ooops. one of it should be TOO_MANY_PATH_COMPONENTS _______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 _______________________________________________ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl