临时提交

This commit is contained in:
panlinlin
2024-07-20 06:44:53 +08:00
parent d201be2f88
commit 80ac701748
3 changed files with 6 additions and 3 deletions

View File

@@ -762,7 +762,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
calld = streamAuthorityInfo.getCallId();
}
List<StreamInfo> streamInfoList = getMediaList(mediaInfo, app, stream, calld);
if (streamInfoList.isEmpty()) {
if (streamInfoList == null || streamInfoList.isEmpty()) {
return null;
}else {
return streamInfoList.get(0);

View File

@@ -216,9 +216,10 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
// 判断是否需要重启代理
if (!streamProxyInDb.getApp().equals(streamProxy.getApp())
|| !streamProxyInDb.getStream().equals(streamProxy.getStream())
|| !streamProxyInDb.getMediaServerId().equals(streamProxy.getMediaServerId())
|| (streamProxyInDb.getMediaServerId() != null && streamProxyInDb.getMediaServerId().equals(streamProxy.getMediaServerId()))
|| (streamProxyInDb.getMediaServerId() == null && streamProxy.getMediaServerId() != null)
) {
// app/stream 变化则重启代理
// 变化则重启代理
stopProxy(streamProxyInDb);
startProxy(streamProxy);
}