summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Becker2011-10-05 07:16:11 (EDT)
committerJuergen Becker2011-10-05 07:16:11 (EDT)
commit37ec9b1da75d63db373a93c69d191da52739e0b1 (patch)
treeb838d794d771d864f835855daa48f0579f3f42c7
parentba7d00440c09902f65d3855f3511a7c286768273 (diff)
downloadorg.eclipse.riena-37ec9b1da75d63db373a93c69d191da52739e0b1.zip
org.eclipse.riena-37ec9b1da75d63db373a93c69d191da52739e0b1.tar.gz
org.eclipse.riena-37ec9b1da75d63db373a93c69d191da52739e0b1.tar.bz2
Fix for a hanging thread during workbench shutdown
-rw-r--r--org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/uiprocess/SwtUISynchronizer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/uiprocess/SwtUISynchronizer.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/uiprocess/SwtUISynchronizer.java
index 2da8686..a1e2ae9 100644
--- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/uiprocess/SwtUISynchronizer.java
+++ b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/uiprocess/SwtUISynchronizer.java
@@ -276,7 +276,7 @@ public class SwtUISynchronizer implements IUISynchronizer {
// dispatch events
try {
- while (!condition.call()) {
+ while (!(condition.call() || isWorkbenchShutdown() || currentDisplay.isDisposed())) {
if (!currentDisplay.readAndDispatch()) {
currentDisplay.sleep();
}