Changeset 8412 in josm for trunk/src/org/openstreetmap/josm/Main.java
- Timestamp:
- 2015-05-22T01:06:28+02:00 (11 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/Main.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r8404 r8412 1081 1081 1082 1082 /** 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. 1084 1085 * @param exit If {@code true}, the JVM is terminated by running {@link System#exit} with a given return code. 1085 1086 * @param exitCode The return code … … 1088 1089 */ 1089 1090 public static boolean exitJosm(boolean exit, int exitCode) { 1090 JCSCacheManager.shutdown();1091 1091 if (Main.saveUnsavedModifications()) { 1092 worker.shutdown(); 1093 ImageProvider.shutdown(false); 1094 JCSCacheManager.shutdown(); 1092 1095 geometry.remember("gui.geometry"); 1093 1096 if (map != null) { … … 1102 1105 } 1103 1106 } 1107 worker.shutdownNow(); 1108 ImageProvider.shutdown(true); 1109 1104 1110 if (exit) { 1105 1111 System.exit(exitCode);
Note:
See TracChangeset
for help on using the changeset viewer.
