Though he hadn’t been sentenced yet, he had already agreed to serve at least four years in jail. He was due to be sentenced in March, according to the Associated Press.

More than 25,000 images of children pornography was found on Salling’s laptop, a hard drive, and a USB flash drive. His girlfriend at the time called the police in 2015 after seeing some of the images.

This wasn’t the first time that the 35-year-old disgraced actor attempted suicide. TMZ reported last year that he tried to slit his wrists. His lawyer claimed that wasn’t true at the time, and told TMZ: “Mark is physically fine and […] spending his time atoning and working on himself.”

Salling was best known for playing Noah "Puck" Puckerman on all six seasons of Glee (which aired from 2009 to 2015.) He also released two albums (unrelated to the musical dramedy): Smoke Signals in 2008 and Pipe Dreams in 2010.

He once dated his Glee co-star Naya Rivera, who said in an interview that she was not shocked by the child pornography charges.

"He was always just a very dark soul to me,” Rivera told Entertainment Tonight. "I always felt like there was something that he was wrestling with."

If you or someone you know is considering suicide, please call the National Suicide Prevention Lifeline at 1-800-273-8255.

[Photo: Getty Images]

Crime Time is your destination for true crime stories from around the world, breaking crime news, and information about Oxgen's original true crime shows and documentaries. Sign up for our Crime Time Newsletter and subscribe to our true crime podcast Martinis & Murder for all the best true crime content.