Explorar el Código

Use shutdownNow to prevent failed launches just hanging in Thread.sleep

Toni Helenius hace 1 año
padre
commit
aae7945973
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      jme3-examples/src/main/java/jme3test/TestChooser.java

+ 1 - 1
jme3-examples/src/main/java/jme3test/TestChooser.java

@@ -105,7 +105,7 @@ public class TestChooser extends JFrame {
     @Override
     public void dispose() {
         if (executorService != null) {
-            executorService.shutdown();
+            executorService.shutdownNow();
         }
 
         super.dispose();