修复ssrc缓存初始化判断错误,导致初始化失败

pull/1077/head
648540858 2023-09-15 14:25:08 +08:00
parent 2d423d9668
commit 2d11f1b3de
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import org.springframework.stereotype.Component;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects;
import java.util.Set; import java.util.Set;
/** /**
@ -118,7 +119,7 @@ public class SSRCFactory {
*/ */
public boolean hasMediaServerSSRC(String mediaServerId) { public boolean hasMediaServerSSRC(String mediaServerId) {
String redisKey = SSRC_INFO_KEY + userSetting.getServerId() + "_" + mediaServerId; String redisKey = SSRC_INFO_KEY + userSetting.getServerId() + "_" + mediaServerId;
return redisTemplate.opsForSet().members(redisKey) != null; return Boolean.TRUE.equals(redisTemplate.hasKey(redisKey));
} }
} }