修复tcp可能无法获取到session的问题

This commit is contained in:
zhou-hao 2020-12-10 17:55:48 +08:00
parent 04381f4224
commit 9718d2aa5f
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ class TcpServerDeviceGateway implements DeviceGateway, MonitorSupportDeviceGatew
.andThen(session -> {
TcpDeviceSession deviceSession = session.unwrap(TcpDeviceSession.class);
deviceSession.setClient(client);
sessionRef.set(deviceSession);
}),
() -> log.warn("无法从tcp[{}]消息中获取设备信息:{}", address, message)
)