Skip to content

Commit

Permalink
send only if relay config is not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Jan 8, 2025
1 parent cb50f98 commit ff09ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion management/server/token_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ func (m *TimeBasedAuthSecretsManager) refreshTURNTokens(ctx context.Context, pee
return
case <-ticker.C:
m.pushNewTURNTokens(ctx, peerID)
m.pushNewRelayTokens(ctx, peerID)
if m.relayCfg != nil {
m.pushNewRelayTokens(ctx, peerID)
}
}
}
}
Expand Down

0 comments on commit ff09ca9

Please sign in to comment.