Changeset 31006 in osm for applications/editors/josm
- Timestamp:
- 2015-02-17T00:12:10+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
r30795 r31006 305 305 try { 306 306 ReadLocalModuleInformationTask task = new ReadLocalModuleInformationTask(monitor); 307 ExecutorService service = Executors.newSingleThreadExecutor(); 308 Future<?> future = service.submit(task); 307 Future<?> future = Main.worker.submit(task); 309 308 try { 310 309 future.get(); 311 } catch(ExecutionException e) { 312 e.printStackTrace(); 313 return null; 314 } catch(InterruptedException e) { 315 e.printStackTrace(); 310 } catch(ExecutionException | InterruptedException e) { 311 Main.error(e); 316 312 return null; 317 313 }
Note:
See TracChangeset
for help on using the changeset viewer.