X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fgui%2Fmap%2FTileDownloader.java;h=7c7540066c839d86105f71a0a95b3af1398d17de;hp=df820fc46225454430c1b28a3f6c5fed90426e8e;hb=326f489e36aa7f235bc19409a57bf4955cd50f24;hpb=8c8868ae29b3252f02e094c02307384cf61ba667 diff --git a/tim/prune/gui/map/TileDownloader.java b/tim/prune/gui/map/TileDownloader.java index df820fc..7c75400 100644 --- a/tim/prune/gui/map/TileDownloader.java +++ b/tim/prune/gui/map/TileDownloader.java @@ -60,8 +60,10 @@ 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)) { + // System.out.println("Not blocked: " + url); LOADING_URLS.add(url); new Thread(new TileDownloader(inManager, inUrl, inLayer, inX, inY, inZoom)).start(); } @@ -76,6 +78,7 @@ public class TileDownloader implements Runnable InputStream in = null; try { + // System.out.println("TD Running thread to get: " + _url.toString()); // Set http user agent on connection URLConnection conn = _url.openConnection(); conn.setRequestProperty("User-Agent", "GpsPrune v" + GpsPrune.VERSION_NUMBER);