修复tcp可能无法获取到session的问题
This commit is contained in:
parent
04381f4224
commit
9718d2aa5f
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue