The plane was carrying more than 220 people onboard, and after the pilots were alert, the flight landed safely an hour later.