Ignore:
Timestamp:
2021-02-20T09:35:18+01:00 (3 years ago)
Author:
wiktorn
Message:

Fix regression from [17494]

Do not shutdown the thread pool, if this is default one. We do share one thread pool
for all TMS downloads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r16553 r17496  
    158158        return downloadExecutor;
    159159    }
     160
     161    /**
     162     * Shutdown the job dispatcher provided that it's not the default one
     163     */
     164    public void shutdown() {
     165        if (!downloadExecutor.equals(DEFAULT_DOWNLOAD_JOB_DISPATCHER)) {
     166            downloadExecutor.shutdown();
     167        }
     168    }
    160169}
Note: See TracChangeset for help on using the changeset viewer.