Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
index ef4890302..df78289f0 100644
--- a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
+++ b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
@@ -221,14 +221,17 @@ public class TCFTerminalShell extends AbstractTerminalShell {
new TCFRSETask<ITerminals.TerminalContext>() {
public void run() {
terminal = ((TCFConnectorService)sessionProvider).getService(ITerminals.class);
- terminal.addListener(listeners);
terminal.launch(ptyType, encoding, environment, new ITerminals.DoneLaunch() {
public void doneLaunch(IToken token, Exception error,
- ITerminals.TerminalContext terminal) {
+ ITerminals.TerminalContext ctx) {
+
+ if (ctx != null) {
+ terminalContext = ctx;
+ terminal.addListener(listeners);
+ }
- terminalContext = terminal;
if (error != null) error(error);
- else done(terminal);
+ else done(ctx);
}
});
}

Back to the top