Torrey DeVitto, best known for her role as Melissa Hastings in "Pretty Little Liars," and Rick Glassman, who plays Burski on the NBC comedy "Undateable," have decided to end their relationship, according to DeVitto's rep, US Weekly reported.

DeVitto, 31, and Glassman called it quits due to their long-distance relationship, an insider revealed. "Her being in Chicago and him in L.A. put a strain on their relationship so they amicably split," the source said. "They were both really into each other and it was hard for both of them."

The couple started dating in January 2015, when they were spotted kissing and getting cozy at the HBO Luxury Lounge at the Four Seasons in Beverly Hills, Los Angeles, according to People.

DeVitto, who is currently working on NBC's "Chicago Med," was previously married to her "The Vampire Diaries" co-star Paul Wesley for two years before they split up in December 2013, according to Hollywood Life.