fix: 设备触发closehandler后,仍然能上报消息,设备状态不正确

V0.5.x
jay 2023-09-05 11:35:10 +08:00
parent 97f48c4b16
commit 710ee6c293
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ public class NBVerticle extends AbstractVerticle {
//删除设备与连接关系
endpointMap.remove(getEndpointKey(r));
});
endpoint.close();
}).disconnectMessageHandler(disconnectMessage -> {
log.info("Received disconnect from client, reason code = {}", disconnectMessage.code());
executor.onReceive(new HashMap<>(), "disconnect", clientId, (r) -> {