Ignore:
Timestamp:
2015-05-22T01:06:28+02:00 (11 years ago)
Author:
Don-vip
Message:

ExecutorService field doesn't ever get shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r8404 r8412  
    10811081
    10821082    /**
    1083      * Closes JOSM and optionally terminates the Java Virtual Machine (JVM). If there are some unsaved data layers, asks first for user confirmation.
     1083     * Closes JOSM and optionally terminates the Java Virtual Machine (JVM).
     1084     * If there are some unsaved data layers, asks first for user confirmation.
    10841085     * @param exit If {@code true}, the JVM is terminated by running {@link System#exit} with a given return code.
    10851086     * @param exitCode The return code
     
    10881089     */
    10891090    public static boolean exitJosm(boolean exit, int exitCode) {
    1090         JCSCacheManager.shutdown();
    10911091        if (Main.saveUnsavedModifications()) {
     1092            worker.shutdown();
     1093            ImageProvider.shutdown(false);
     1094            JCSCacheManager.shutdown();
    10921095            geometry.remember("gui.geometry");
    10931096            if (map != null) {
     
    11021105                }
    11031106            }
     1107            worker.shutdownNow();
     1108            ImageProvider.shutdown(true);
     1109
    11041110            if (exit) {
    11051111                System.exit(exitCode);
Note: See TracChangeset for help on using the changeset viewer.