probably a minor change

This commit is contained in:
rusEfi 2018-01-24 20:41:35 -05:00
parent 0ef5c0d152
commit 5e2da2430a
2 changed files with 6 additions and 6 deletions

View File

@ -327,13 +327,12 @@ public class BinaryProtocol implements BinaryProtocolCommands {
if (isClosed)
return null;
try {
LinkManager.assertCommunicationThread();
dropPending();
sendPacket(packet);
return receivePacket(msg, allowLongResponse);
} catch (InterruptedException e) {
throw new IllegalStateException(e);
} catch (IOException e) {
} catch (InterruptedException | IOException e) {
logger.error(msg + ": executeCommand failed: " + e);
close();
return null;
@ -457,7 +456,7 @@ public class BinaryProtocol implements BinaryProtocolCommands {
return true;
}
public String requestPendingMessages() {
private String requestPendingMessages() {
if (isClosed)
return null;
try {
@ -467,7 +466,8 @@ public class BinaryProtocol implements BinaryProtocolCommands {
// System.out.println(result);
return new String(response, 1, response.length - 1);
} catch (InterruptedException e) {
throw new IllegalStateException(e);
FileLog.MAIN.log(e);
return null;
}
}

View File

@ -45,7 +45,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
* @see EngineSnifferPanel
*/
public class Launcher {
public static final int CONSOLE_VERSION = 20180124;
public static final int CONSOLE_VERSION = 20180125;
public static final boolean SHOW_STIMULATOR = false;
private static final String TAB_INDEX = "main_tab";
protected static final String PORT_KEY = "port";