mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 494429 - fix race condition when first opening connection
Change-Id: I966679878c4f2ee010da74ecdc750b6e150e4a6a Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
44afd0475a
commit
ba3f1c00ab
1 changed files with 5 additions and 5 deletions
|
@ -140,11 +140,6 @@ public class TerminalConsoleConnector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outThread == null) {
|
|
||||||
outThread = new OutThread();
|
|
||||||
outThread.start();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (width > 0 || height > 0) {
|
if (width > 0 || height > 0) {
|
||||||
IRemoteProcessTerminalService termService = remoteProcess.getService(IRemoteProcessTerminalService.class);
|
IRemoteProcessTerminalService termService = remoteProcess.getService(IRemoteProcessTerminalService.class);
|
||||||
if (termService != null) {
|
if (termService != null) {
|
||||||
|
@ -152,6 +147,11 @@ public class TerminalConsoleConnector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (outThread == null) {
|
||||||
|
outThread = new OutThread();
|
||||||
|
outThread.start();
|
||||||
|
}
|
||||||
|
|
||||||
setState(TerminalState.CONNECTED);
|
setState(TerminalState.CONNECTED);
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue