修复平台删除时未移除心跳超时重新注册任务的问题 #1329

This commit is contained in:
648540858
2024-03-04 14:32:57 +08:00
parent e932a9b824
commit 38980826f9
2 changed files with 6 additions and 10 deletions

View File

@@ -239,6 +239,8 @@ public class PlatformController {
if (parentPlatformCatch == null) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "平台不存在");
}
parentPlatform.setEnable(false);
storager.updateParentPlatform(parentPlatform);
// 发送离线消息,无论是否成功都删除缓存
try {
commanderForPlatform.unregister(parentPlatform, parentPlatformCatch.getSipTransactionInfo(), (event -> {