summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/Animator.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-03 08:09:47 +0000
committerKenneth Russel <[email protected]>2005-02-03 08:09:47 +0000
commitc96639da4df03ff8119294e9bb0b8972b1ab5742 (patch)
treedb4d912c26297fd2a25943f869cbbfb5960b11d6 /src/net/java/games/jogl/Animator.java
parentf982fe24893868e61bec285daa8093a23ef1546a (diff)
Fixed Issue 37: GLJPanel + Animator.stop() halts event dispatch thread
Updated heuristic of when to block waiting for the animator to stop. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@205 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/Animator.java')
-rw-r--r--src/net/java/games/jogl/Animator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/java/games/jogl/Animator.java b/src/net/java/games/jogl/Animator.java
index 3f5bfdeb2..4c50b9362 100644
--- a/src/net/java/games/jogl/Animator.java
+++ b/src/net/java/games/jogl/Animator.java
@@ -145,8 +145,7 @@ public class Animator {
// dependencies on the Animator's internal thread. Currently we
// use a couple of heuristics to determine whether we should do
// the blocking wait().
- if ((Thread.currentThread() == thread) ||
- (SingleThreadedWorkaround.doWorkaround() && EventQueue.isDispatchThread())) {
+ if ((Thread.currentThread() == thread) || EventQueue.isDispatchThread()) {
return;
}
while (shouldStop && thread != null) {