private PrecacheTask precacheTask;
@Override
protected void realRun() throws SAXException, IOException, OsmTransferException {
precacheTask = new PrecacheTask(progressMonitor);
layer.downloadAreaToCache(precacheTask, points, 0, 0);
while (!precacheTask.isFinished() && !progressMonitor.isCanceled()) {
synchronized (this) {
try {
wait(200);
} catch (InterruptedException ex) {