修复国标级联上级主动结束时ssrc未释放的问题

This commit is contained in:
648540858
2024-02-02 09:20:13 +08:00
parent bf0efc2739
commit b079039f81
3 changed files with 5 additions and 2 deletions

View File

@@ -447,7 +447,7 @@ public class ZLMHttpHookListener {
}
if (!param.isRegist()) {
List<SendRtpItem> sendRtpItems = redisCatchStorage.querySendRTPServerByStream(param.getStream());
if (sendRtpItems.size() > 0) {
if (!sendRtpItems.isEmpty()) {
for (SendRtpItem sendRtpItem : sendRtpItems) {
if (sendRtpItem != null && sendRtpItem.getApp().equals(param.getApp())) {
String platformId = sendRtpItem.getPlatformId();