Author: j16sdiz
Date: 2009-01-02 02:29:38 +0000 (Fri, 02 Jan 2009)
New Revision: 24869

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
doh!

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2009-01-02 01:31:23 UTC (rev 
24868)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2009-01-02 02:29:38 UTC (rev 
24869)
@@ -107,14 +107,14 @@
         * @param uri the new uri that needs to be fetched for further indexing
         */
        public void queueURI(FreenetURI uri, String comment, boolean force) {
+               String sURI = uri.toString();
+               for (String ext : root.getConfig().getBadlistedExtensions())
+                       if (sURI.endsWith(ext))
+                               return; // be smart
+
                db.beginThreadTransaction(Storage.EXCLUSIVE_TRANSACTION);
                boolean dbTransactionEnded = false;
                try {
-                       String sURI = uri.toString();
-                       for (String ext : 
root.getConfig().getBadlistedExtensions())
-                               if (sURI.endsWith(ext))
-                                       return; // be smart
-
                        if (uri.isUSK()) {
                                if (uri.getSuggestedEdition() < 0)
                                        uri = uri.setSuggestedEdition((-1) * 
uri.getSuggestedEdition());

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

Reply via email to