< prev index next >
src/java.desktop/share/classes/sun/awt/AppContext.java
Print this page
@@ -523,11 +523,14 @@
Thread.sleep(10);
} catch (InterruptedException e) { }
}
// Then, we stop any remaining Threads
- this.threadGroup.stop();
+ AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
+ threadGroup.stop();
+ return null;
+ });
// Next, we sleep 10ms at a time, waiting for all of the active
// Threads in the ThreadGroup to die.
startTime = System.currentTimeMillis();
< prev index next >