diff options
author | Mark Wielaard <mark@klomp.org> | 2006-11-25 15:10:54 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2006-11-25 15:10:54 +0000 |
commit | 05b6d47379292578f0434e65c4ce29db59b9968d (patch) | |
tree | fbc7245772f6599f524002f6ca30dfa8882d70a7 /java | |
parent | 9237ae33653fec2c82805fc588325215faff2c2f (diff) | |
download | classpath-05b6d47379292578f0434e65c4ce29db59b9968d.tar.gz |
* java/awt/EventQueue.java (pop): Only terminate dispatchThread when
it is still running.
Diffstat (limited to 'java')
-rw-r--r-- | java/awt/EventQueue.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/awt/EventQueue.java b/java/awt/EventQueue.java index 0b6e03efa..74dbd5fb6 100644 --- a/java/awt/EventQueue.java +++ b/java/awt/EventQueue.java @@ -584,8 +584,11 @@ public class EventQueue prev = null; // Tell our EventDispatchThread that it can end // execution. - dispatchThread.interrupt(); - dispatchThread = null; + if (dispatchThread != null) + { + dispatchThread.interrupt(); + dispatchThread = null; + } } } } |