Assume the connection is open after the command is started instead of waiting for first input

This commit is contained in:
Niclas Finne 2011-10-24 16:51:58 +02:00
parent b01cbb996d
commit cde6453818

View File

@ -132,6 +132,10 @@ public class CommandConnection extends SerialConnection {
}
}, "read error stream thread");
if (!isOpen) {
isOpen = true;
serialOpened();
}
readInput.start();
readError.start();
} catch (Exception e) {
@ -143,10 +147,6 @@ public class CommandConnection extends SerialConnection {
}
protected void standardData(String line) {
if (!isOpen) {
isOpen = true;
serialOpened();
}
serialData(line);
}