1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56: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:
Greg Watson 2016-05-24 16:56:47 -04:00
parent 44afd0475a
commit ba3f1c00ab

View file

@ -140,11 +140,6 @@ public class TerminalConsoleConnector {
}
}
if (outThread == null) {
outThread = new OutThread();
outThread.start();
}
if (width > 0 || height > 0) {
IRemoteProcessTerminalService termService = remoteProcess.getService(IRemoteProcessTerminalService.class);
if (termService != null) {
@ -152,6 +147,11 @@ public class TerminalConsoleConnector {
}
}
if (outThread == null) {
outThread = new OutThread();
outThread.start();
}
setState(TerminalState.CONNECTED);
return Status.OK_STATUS;
}