mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 09:54:41 +00:00
Re-issue tokens when clients initially connect. (#569)
This ensures if they are disconnected before token is refreshed, they could reconnect back with a valid token.
This commit is contained in:
@@ -99,7 +99,7 @@ func (r *RedisRouter) SetNodeForRoom(_ context.Context, roomName livekit.RoomNam
|
||||
}
|
||||
|
||||
func (r *RedisRouter) ClearRoomState(_ context.Context, roomName livekit.RoomName) error {
|
||||
if err := r.rc.HDel(r.ctx, NodeRoomKey, string(roomName)).Err(); err != nil {
|
||||
if err := r.rc.HDel(context.Background(), NodeRoomKey, string(roomName)).Err(); err != nil {
|
||||
return errors.Wrap(err, "could not clear room state")
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user