修复zlm节点离线拉流代理sql调用错误

pull/1699/head
648540858 2024-11-18 15:55:12 +08:00
parent 5b393b7273
commit b38e5508f6
1 changed files with 8 additions and 5 deletions

View File

@ -387,11 +387,14 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
streamProxiesForSendMessage.add(streamProxy);
}
}
// 移除开启了无人观看自动移除的流
streamProxyMapper.deleteByList(streamProxiesForRemove);
// 修改国标关联的国标通道的状态
gbChannelService.offline(channelListForOffline);
if (!streamProxiesForRemove.isEmpty()) {
// 移除开启了无人观看自动移除的流
streamProxyMapper.deleteByList(streamProxiesForRemove);
}
if (!streamProxiesForRemove.isEmpty()) {
// 修改国标关联的国标通道的状态
gbChannelService.offline(channelListForOffline);
}
if (!streamProxiesForSendMessage.isEmpty()) {
for (StreamProxy streamProxy : streamProxiesForSendMessage) {
JSONObject jsonObject = new JSONObject();