]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/gui/map/TileDownloader.java
Version 20.4, May 2021
[GpsPrune.git] / src / tim / prune / gui / map / TileDownloader.java
index 7ec6d91eb58db07faaa8c8a52421f5da5a8cf544..16466f3e8631b4051fca5415719972413df8ecb7 100644 (file)
@@ -63,16 +63,15 @@ public class TileDownloader implements Runnable
                if (inManager != null && inUrl != null)
                {
                        String url = inUrl.toString();
-                       // System.out.println("Trigger load: " + url);
-                       if (!BLOCKED_URLS.contains(url) && !LOADING_URLS.contains(url))
+                       if (BLOCKED_URLS.contains(url))
+                       {
+                               System.out.println("Already blocked: " + url);
+                       }
+                       else if (!LOADING_URLS.contains(url))
                        {
-                               // System.out.println("Not blocked: " + url);
                                LOADING_URLS.add(url);
                                new Thread(new TileDownloader(inManager, inUrl, inLayer, inX, inY, inZoom)).start();
                        }
-                       else {
-                               System.out.println("Already blocked: " + url);
-                       }
                }
        }