TS refactoring
This commit is contained in:
parent
720c463ffb
commit
1e61639f55
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue