Fix ingress stream key lookup and avoid nil dereference when room in auth claims doesn't match (#869)

This commit is contained in:
Benjamin Pracht
2022-08-04 16:22:55 -07:00
committed by GitHub
parent c333b7a026
commit 0cffbe69e9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -467,7 +467,7 @@ func (s *RedisStore) StoreIngress(_ context.Context, info *livekit.IngressInfo)
results, err := tx.TxPipelined(s.ctx, func(p redis.Pipeliner) error {
p.HSet(s.ctx, IngressKey, info.IngressId, data)
p.HSet(s.ctx, StreamKeyKey, info.IngressId, info.StreamKey)
p.HSet(s.ctx, StreamKeyKey, info.StreamKey, info.IngressId)
if oldRoom != info.RoomName {
if oldRoom != "" {