Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-11-29 12:07:08 -0500
committerEugene Tarassov2011-11-29 12:07:08 -0500
commita94ee9ff72a58bc5054fb6bf7da874c2f42ca2e2 (patch)
treecfeb99d0b437fc32b8764c8b47d21c5df38e1170 /plugins/org.eclipse.tcf.rse
parenta4909f42c8ce248e4d5bd9a0dab72c075ae8a6e9 (diff)
downloadorg.eclipse.tcf-a94ee9ff72a58bc5054fb6bf7da874c2f42ca2e2.tar.gz
org.eclipse.tcf-a94ee9ff72a58bc5054fb6bf7da874c2f42ca2e2.tar.xz
org.eclipse.tcf-a94ee9ff72a58bc5054fb6bf7da874c2f42ca2e2.zip
Bug 329662 - [tcf]IllegalStateException while shutting down Eclipse with unfolded processes/files list
Diffstat (limited to 'plugins/org.eclipse.tcf.rse')
-rw-r--r--plugins/org.eclipse.tcf.rse/src/org/eclipse/tcf/internal/rse/TCFConnectorService.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tcf.rse/src/org/eclipse/tcf/internal/rse/TCFConnectorService.java b/plugins/org.eclipse.tcf.rse/src/org/eclipse/tcf/internal/rse/TCFConnectorService.java
index 499c1c033..e49cb0294 100644
--- a/plugins/org.eclipse.tcf.rse/src/org/eclipse/tcf/internal/rse/TCFConnectorService.java
+++ b/plugins/org.eclipse.tcf.rse/src/org/eclipse/tcf/internal/rse/TCFConnectorService.java
@@ -171,11 +171,16 @@ public class TCFConnectorService extends StandardConnectorService implements ITC
public boolean isConnected() {
final boolean res[] = new boolean[1];
- Protocol.invokeAndWait(new Runnable() {
- public void run() {
- res[0] = channel != null && channel.getState() == IChannel.STATE_OPEN;
- }
- });
+ try {
+ Protocol.invokeAndWait(new Runnable() {
+ public void run() {
+ res[0] = channel != null && channel.getState() == IChannel.STATE_OPEN;
+ }
+ });
+ }
+ catch (IllegalStateException e) {
+ res[0] = false;
+ }
return res[0];
}

Back to the top