X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fgui%2Fmap%2FTileDownloader.java;h=16466f3e8631b4051fca5415719972413df8ecb7;hp=7ec6d91eb58db07faaa8c8a52421f5da5a8cf544;hb=HEAD;hpb=8b20e3e027058cdf6ff52993ee5576193d08667a diff --git a/src/tim/prune/gui/map/TileDownloader.java b/src/tim/prune/gui/map/TileDownloader.java index 7ec6d91..16466f3 100644 --- a/src/tim/prune/gui/map/TileDownloader.java +++ b/src/tim/prune/gui/map/TileDownloader.java @@ -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); - } } }