Wait for metadata update. (#2363)

This commit is contained in:
Raja Subramanian
2024-01-05 17:07:44 +05:30
committed by GitHub
parent 7049627767
commit 32bd75648f
4 changed files with 17 additions and 15 deletions
+3 -1
View File
@@ -776,7 +776,9 @@ func (r *RoomManager) UpdateRoomMetadata(ctx context.Context, req *livekit.Updat
}
room.Logger.Debugw("updating room")
room.SetMetadata(req.Metadata)
done := room.SetMetadata(req.Metadata)
// wait till the update is applied
<-done
return room.ToProto(), nil
}