From cb8011909063b330f5da6cdb03c2e329b97b18a2 Mon Sep 17 00:00:00 2001 From: 朱俊杰 <502612493@qq.com> Date: 星期四, 31 三月 2022 09:19:45 +0800 Subject: [PATCH] 订阅查询错误和空指针 --- src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java b/src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java index b69bf68..7f9f847 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java @@ -59,10 +59,10 @@ redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch); // 鍙栨秷璁㈤槄 - sipCommanderForPlatform.unregister(parentPlatform, null, null); - Thread.sleep(500); - // 鍙戦�佸钩鍙版湭娉ㄥ唽娑堟伅 - publisher.platformNotRegisterEventPublish(parentPlatform.getServerGBId()); + sipCommanderForPlatform.unregister(parentPlatform, null, (eventResult)->{ + // 鍙戦�佸钩鍙版湭娉ㄥ唽娑堟伅 + publisher.platformNotRegisterEventPublish(parentPlatform.getServerGBId()); + }); } } } -- Gitblit v1.8.0