auto-sync

This commit is contained in:
rusEfi 2015-05-16 10:12:59 -04:00
parent d7c99c5199
commit 3ad971a673
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class LinkManager {
@Override
public String unpackConfirmation(String message) {
return TcpConnector.doUnpackConfirmation(message);
return message;
}
};
public static final LinkedBlockingQueue<Runnable> COMMUNICATION_QUEUE = new LinkedBlockingQueue<>();

View File

@ -154,7 +154,9 @@ public class TcpConnector implements LinkConnector {
@Override
public String unpackConfirmation(String message) {
return doUnpackConfirmation(message);
if (message.startsWith(CommandQueue.CONFIRMATION_PREFIX))
return message.substring(CommandQueue.CONFIRMATION_PREFIX.length());
return null;
}
public static Collection<String> getAvailablePorts() {