progress
This commit is contained in:
parent
4b5990365c
commit
c53b218e41
|
@ -55,7 +55,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
|
||||||
|
|
||||||
public void start(LinkManager linkManager) {
|
public void start(LinkManager linkManager) {
|
||||||
try {
|
try {
|
||||||
start(linkManager, DEFAULT_PROXY_PORT, Listener.empty(), new Context());
|
start(linkManager, DEFAULT_PROXY_PORT, Listener.empty(), new Context());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("Error starting local proxy", e);
|
log.error("Error starting local proxy", e);
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
|
||||||
BinaryProtocolState binaryProtocolState = linkManager.getBinaryProtocolState();
|
BinaryProtocolState binaryProtocolState = linkManager.getBinaryProtocolState();
|
||||||
byte[] currentOutputs = binaryProtocolState.getCurrentOutputs();
|
byte[] currentOutputs = binaryProtocolState.getCurrentOutputs();
|
||||||
if (currentOutputs != null)
|
if (currentOutputs != null)
|
||||||
System.arraycopy(currentOutputs, 1 + offset, response, 1, count);
|
System.arraycopy(currentOutputs, offset, response, 1, count);
|
||||||
stream.sendPacket(response);
|
stream.sendPacket(response);
|
||||||
} else if (command == Fields.TS_GET_TEXT) {
|
} else if (command == Fields.TS_GET_TEXT) {
|
||||||
// todo: relay command
|
// todo: relay command
|
||||||
|
|
Loading…
Reference in New Issue