- Timestamp:
- 2021-09-12T02:15:34+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ListenableWeakReference.java
r16913 r18212 56 56 private static void clean() { 57 57 boolean running = true; 58 try{59 while (running){58 while (running) { 59 try { 60 60 Reference<? extends Object> ref = GLOBAL_QUEUE.remove(); 61 61 if (ref instanceof ListenableWeakReference) { 62 62 ((ListenableWeakReference<?>) ref).onDereference(); 63 63 } 64 } catch (InterruptedException e) { 65 running = false; 66 BugReport.intercept(e).warn(); 67 Thread.currentThread().interrupt(); 64 68 } 65 } catch (InterruptedException e) {66 running = false;67 BugReport.intercept(e).warn();68 Thread.currentThread().interrupt();69 69 } 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.