Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ae818c5311
|
|
@ -241,7 +241,9 @@ class MqttServerDeviceGateway implements DeviceGateway, MonitorSupportDeviceGate
|
|||
if (anotherSession == null) {
|
||||
return registry
|
||||
.getDevice(msg.getDeviceId())
|
||||
.flatMap(device -> handleMessage(device.getDeviceId(), device, msg, session));
|
||||
.map(device -> handleMessage(device.getDeviceId(), device, msg, session))
|
||||
.defaultIfEmpty(Mono.defer(()->handleMessage(msg.getDeviceId(), operator, msg, session)))
|
||||
.flatMap(Function.identity());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue