May 22, 2022; Fort Worth, Texas, USA; NASCAR Cup Series driver Ryan Blaney (12) during the All-Star Race at Texas Motor Speedway. John David Mercer-USA TODAY Sports

Ryan Blaney won the NASCAR All-Star Race on Sunday night at Texas Motor Speedway, and his victory came under controversial circumstances.

Blaney was the leader and thought he had won as he crossed the finish line. But when he crossed the finish line, the yellow caution flag was out because Ricky Stenhouse Jr. had gone into the wall.

All-Star Race rules say the competition must end under a green flag, so the race wasn’t over. Blaney unlatched his window netting to celebrate but had to hastily refasten it.

Blaney continued racing another two laps in overtime and held off Denny Hamlin to win.

Blaney was able to take home a $1 million prize for winning the race. He was grateful the late caution and window issue did not interfere with the final result.

Many people were happy that NASCAR didn’t let the caution flag or netting issue get in the way of allowing Blaney the chance to win.

More must-reads:

TODAY'S BEST
Bengals star WR not expected to sign franchise tender before OTAs
Red Sox RHP diagnosed with ligament damage in elbow
Watch: Caitlin Clark shows off range with logo three, but Fever fall short
Former Dolphins receiving leader announces his retirement from NFL
Detroit Lions dominate PFF's top-25 players under 25
Hall of Famer, legendary Raiders offensive lineman dead at 86
Report: Cavs owner 'would never' trade Donovan Mitchell to this team
Kim Mulkey adds legendary LSU alum to coaching staff
Insider details LeBron James' role in Lakers' head-coaching search
Cardinals switch up offensive line, move 2023 first-rounder to new position
Commanders poach another key overseer of Lions rebuild
Commanders to hire veteran executive as player personnel director
Guardians designate outfielder for assignment
Patriots' Drake Maye starts OTAs in surprising position
Bettors are buying Bronny James hype before the 2024 NBA Draft
Mets release veteran infielder
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Victor Wembanyama, Chet Holmgren highlight 2023-24 All-Rookie team
Jaguars' Doug Pederson discusses Trevor Lawrence contract extension
Saints, star CB 'moving forward' following trade chatter