Commits

Michael Ludwig committed 94be289

Manually re-apply Windows AWT interruption fix.

Comments (0)

Files changed (1)

ferox-renderer/ferox-renderer-impl/src/main/java/com/ferox/renderer/impl/LifeCycleManager.java

                 }
 
                 // Send an interrupt to all managed threads
-                managedThreadGroup.interrupt();
                 status = Status.WAITING_ON_CHILDREN;
+                // - we can't just interrupt the group because some impl's use AWT
+                //   which then inherits this group and gets fussy when we send
+                //   interrupts out.
+                for (Thread m: managedThreads) {
+                    m.interrupt();
+                }
 
                 ThreadGroup shutdownOwner = Thread.currentThread().getThreadGroup();
                 while(managedThreadGroup.parentOf(shutdownOwner)) {