Changeset 13796 in osm for applications/editors


Ignore:
Timestamp:
2009-02-19T18:59:32+01:00 (16 years ago)
Author:
stoecker
Message:

apply patch from #2096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r13673 r13796  
    6363    protected final int serializeFormatVersion = 4;
    6464
    65     private ExecutorService executor;
     65    private ExecutorService executor = null;
    6666
    6767    public WMSLayer() {
     
    8282       
    8383        executor = Executors.newFixedThreadPool(3);
     84    }
     85   
     86    public void destroy() {
     87        try {
     88            executor.shutdown(); 
     89        // Might not be initalized, so catch NullPointer as well
     90        } catch(Exception x) {}
    8491    }
    8592
Note: See TracChangeset for help on using the changeset viewer.