fix: 设备触发closehandler后,仍然能上报消息,设备状态不正确
parent
97f48c4b16
commit
710ee6c293
|
@ -114,6 +114,7 @@ public class NBVerticle extends AbstractVerticle {
|
||||||
//删除设备与连接关系
|
//删除设备与连接关系
|
||||||
endpointMap.remove(getEndpointKey(r));
|
endpointMap.remove(getEndpointKey(r));
|
||||||
});
|
});
|
||||||
|
endpoint.close();
|
||||||
}).disconnectMessageHandler(disconnectMessage -> {
|
}).disconnectMessageHandler(disconnectMessage -> {
|
||||||
log.info("Received disconnect from client, reason code = {}", disconnectMessage.code());
|
log.info("Received disconnect from client, reason code = {}", disconnectMessage.code());
|
||||||
executor.onReceive(new HashMap<>(), "disconnect", clientId, (r) -> {
|
executor.onReceive(new HashMap<>(), "disconnect", clientId, (r) -> {
|
||||||
|
|
Loading…
Reference in New Issue