]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/gui/map/TileDownloader.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / gui / map / TileDownloader.java
index df820fc46225454430c1b28a3f6c5fed90426e8e..7c7540066c839d86105f71a0a95b3af1398d17de 100644 (file)
@@ -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);