Changeset 10545 in josm for trunk/src/org/openstreetmap/josm/data/cache
- Timestamp:
- 2016-07-17T12:40:18+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10469 r10545 387 387 } catch (IOException e) { 388 388 log.log(Level.FINE, "JCS - IOExecption during communication with server for: {0}", getUrlNoException()); 389 attributes.setError(e); 390 attributes.setResponseCode(499); // set dummy error code 391 boolean doCache = isResponseLoadable(null, 499, null) || cacheAsEmpty(); //generic 499 error code returned 392 if (doCache) { 393 cacheData = createCacheEntry(new byte[]{}); 394 cache.put(getCacheKey(), createCacheEntry(new byte[]{}), attributes); 395 } 396 return doCache; 389 if (isObjectLoadable()) { 390 return true; 391 } else { 392 attributes.setError(e); 393 attributes.setResponseCode(499); // set dummy error code 394 boolean doCache = isResponseLoadable(null, 499, null) || cacheAsEmpty(); //generic 499 error code returned 395 if (doCache) { 396 cacheData = createCacheEntry(new byte[]{}); 397 cache.put(getCacheKey(), createCacheEntry(new byte[]{}), attributes); 398 } 399 return doCache; 400 } 401 397 402 } catch (InterruptedException e) { 398 403 attributes.setError(e);
Note:
See TracChangeset
for help on using the changeset viewer.