Changeset 31006 in osm for applications/editors/josm


Ignore:
Timestamp:
2015-02-17T00:12:10+01:00 (10 years ago)
Author:
donvip
Message:

[josm_opendata] fix problem with load at runtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java

    r30795 r31006  
    305305        try {
    306306            ReadLocalModuleInformationTask task = new ReadLocalModuleInformationTask(monitor);
    307             ExecutorService service = Executors.newSingleThreadExecutor();
    308             Future<?> future = service.submit(task);
     307            Future<?> future = Main.worker.submit(task);
    309308            try {
    310309                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);
    316312                return null;
    317313            }
Note: See TracChangeset for help on using the changeset viewer.