Some misc changes (#1107)

- ticker.Stop always
- clean up timer func (if they are added) on participant close
- sequencer test enhancement to add a real packet after a pdding packet
This commit is contained in:
Raja Subramanian
2022-10-20 11:11:45 +05:30
committed by GitHub
parent 20cbb02360
commit 4344af6fd3
4 changed files with 9 additions and 3 deletions
+2
View File
@@ -420,6 +420,8 @@ func (s *RedisStore) UpdateEgress(_ context.Context, info *livekit.EgressInfo) e
// Deletes egress info 24h after the egress has ended
func (s *RedisStore) egressWorker() {
ticker := time.NewTicker(time.Minute * 30)
defer ticker.Stop()
for {
select {
case <-s.done: