TS refactoring

This commit is contained in:
rusefillc 2022-05-28 10:48:07 -04:00
parent 720c463ffb
commit 1e61639f55
2 changed files with 4 additions and 1 deletions

View File

@ -2019,6 +2019,7 @@ end_struct
#define TS_PAGE_COMMAND 'P'
! 0x46
#define TS_COMMAND_F 'F'
#define TS_GET_PROTOCOL_VERSION_COMMAND_F 'F'
! versionInfo
#define TS_GET_FIRMWARE_VERSION 'V'
! returns getFirmwareError(), works together with ind_hasFatalError

View File

@ -117,7 +117,9 @@ public class BinaryProtocolServer {
continue;
}
log.info("Accepting binary protocol proxy port connection on " + port);
threadFactory.newThread(clientSocketRunnableFactory.apply(clientSocket)).start();
Runnable clientRunnable = clientSocketRunnableFactory.apply(clientSocket);
Objects.requireNonNull(clientRunnable, "Runnable for " + clientSocket);
threadFactory.newThread(clientRunnable).start();
}
};
threadFactory.newThread(runnable).start();