修复推流关联平台的bug again

This commit is contained in:
648540858
2022-03-16 10:12:31 +08:00
parent 66aac4526b
commit e752dbd1a7
5 changed files with 30 additions and 8 deletions

View File

@@ -305,6 +305,8 @@ public class PlatformController {
// 停止发送位置订阅定时任务
String key = VideoManagerConstants.SIP_SUBSCRIBE_PREFIX + userSetup.getServerId() + "_MobilePosition_" + parentPlatform.getServerGBId();
dynamicTask.stop(key);
// 删除缓存的订阅信息
subscribeHolder.removeAllSubscribe(parentPlatform.getServerGBId());
if (deleteResult) {
return new ResponseEntity<>("success", HttpStatus.OK);
} else {
@@ -341,7 +343,6 @@ public class PlatformController {
* @param platformId 上级平台ID
* @param query 查询内容
* @param online 是否在线
* @param choosed 是否已选中
* @param channelType 通道类型
* @return
*/