- Timestamp:
- 2014-04-15T13:29:31+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r6977 r6980 95 95 // First, download primitives 96 96 mainTask = new DownloadPrimitivesTask(tmpLayer, ids, full, getProgressMonitor().createSubTaskMonitor(1, false)); 97 currentTask = mainTask;98 synchronized(this) {97 synchronized(this) { 98 currentTask = mainTask; 99 99 if(canceled) { 100 100 currentTask = null; … … 121 121 @Override 122 122 protected void finish() { 123 if(canceled) 124 return; 123 synchronized(this) { 124 if(canceled) 125 return; 126 } 125 127 126 128 // Append downloaded data to JOSM … … 183 185 */ 184 186 public List<PrimitiveId> getDownloadedId() { 185 if(canceled) 186 return null; 187 synchronized(this) { 188 if(canceled) 189 return null; 190 } 187 191 ArrayList<PrimitiveId> downloaded = new ArrayList<PrimitiveId>(ids); 188 192 downloaded.removeAll(mainTask.getMissingPrimitives());
Note:
See TracChangeset
for help on using the changeset viewer.