Grant Gustin
Grant Gustin attends the 4th Annual Elsie Fest, Broadway's Outdoor Music Festival at Central Park SummerStage in New York City, Oct. 7, 2018. Jenny Anderson/Getty Images for Elsie Fest

“The Flash” star Grant Gustin reportedly set off the smoke alarm inside a Compass Airlines flight Sunday after he started vaping in the aircraft's washroom.

Gustin was flying first class on the Compass Airlines Flight 6006, from Los Angeles to Vancouver, Canada, when the incident took place, TMZ reported. Minutes after the flight departed from the airport, the actor, who plays a DC superhero on the small screen, headed straight to the bathroom, carrying his vaping pen along with him.

According to witnesses who spoke to the tabloid, there was intense smoke coming out of the bathroom and it set off the smoke alarm. At some point, the pilot as well as the co-pilots were forced to wear oxygen masks because the smoke had fogged up the cockpit, making it difficult for them to breathe.

When Gustin was confronted by flight attendants, he reportedly admitted to vaping, explaining that he did it because he wanted to relax. Although e-cigarettes or vaping pens were not allowed on flights, no charges were filed against the actor. Instead, the crew members confiscated the vaping device from him.

The flight continued as scheduled, following the incident. When the plane landed at Vancouver International Airport, Gustin was told to remain inside the aircraft. Canadian authorities boarded the plane and gave the actor a stern warning.

An airlines spokesperson told TMZ that the aircraft “experienced a smoke indicator from the forward lavatory while in flight. A vaping pen was confiscated from a cooperative passenger. The flight landed safely in Vancouver, without delay."

According to Transport Administration Security, "Battery-powered E-cigarettes, vaporizers, vape pens, atomizers, and electronic nicotine delivery systems may only be carried in the aircraft cabin [in carry-on baggage or on your person]," however these devices cannot be used or charged inside a flight.

In March, Gustin joined in with a lot of DC Comics fans in bidding farewell to “Arrow,” the show from which his series was originally spun off, after it was announced that the upcoming eighth season of the show would be the final one.

“It kinda just hit me this morning that Arrow will be leaving us next year,” Gustin wrote in an Instagram post. “Ever since I started doing this, it’s always been ‘Flash & Arrow’ [or really this should of said ‘Arrow & Flash’ on it’s cover….right, Stephen [Amell]?]. We don’t get to see a lot of each other, because we both work very similar schedules, on different shows, for 9 1/2 months out of the year. But when we’re brought together for those grueling crossover episodes, it always results in something pretty special.”

“It’s just absolutely bananas to stand around with that many people in super suits, and get paid to play make believe on tv. It’s something that wouldn’t happen year after year if it weren’t for the groundwork that Arrow, Stephen and the whole cast and crew laid for us,” he added.