It's been a sad week for Larry Wilmore but at least Jon Stewart was there to cheer him up on his final episode of "The Nightly Show."
The former "Daily Show" star, who created "The Nightly Show" as a replacement for "The Colbert Report," was a guest on Thursday's last episode of Wilmore's show, which Comedy Central canceled this week.
"The last show — oh my god, what did you do, p–s off Peter Thiel?" Stewart asked, referring to the tech billionaire who helped Hulk Hogan take down Gawker.
The 16-year Comedy Central veteran went on to tell Wilmore that when he was coming up in the TV ranks "a very wise man said to me, 'Do not confuse cancellation with failure.' And I took that to heart." FYI, that "wise man" was David Letterman.
"You took something and got better every f–king day," Stewart continued.
The compliments didn't end there, however. "You started a conversation that was not on television when you began. And you worked with a group of people you invited to that conversation to collaborate with you, to sharpen that conversation," he told Wilmore. "And what you don't realize is that you walk out of this room, and that conversation doesn't end. That's beautiful thing."
Earlier on Thursday, Wilmore told TheWrap that Stewart has been "commiserating, that type of thing. Mutual frustration. Jon's been great."
Comedy Central will begin airing "@midnight" episodes next week in the "Nightly Show's" 11:30 p.m. ET slot until a more permanent decision can be made regarding the network's late night schedule.
Though his show struggled in ratings, the late-night host had some funny takes on serious topics ranging from Black Lives Matter to Planned Parenthood.
On Aug. 18, "The Nightly Show with Larry Wilmore" will come to an end after 20 months in the Comedy Central timeslot once held by "The Colbert Report." While it never came close to reaching the numbers of its predecessor, Wilmore proved in the series' 259 episodes that he could be as powerful a satirist and commentator as Jon Stewart with his takes on major political and social stories. View In Gallery
Check out more from Larry Wilmore in the gallery below!
Larry Wilmore out and about
Larry Wilmore out and about
Larry Wilmore, executive producer 'The Bernie Mac Show' (Photo by Jean-Paul Aussenard/WireImage)
LOS ANGELES, CA - FEBRUARY 26: Writer/producer Larry Wilmore attends The Museum Of Television & Radio's 20th Anniversary William S. Paley Television Festival Presents: 'Creating Comedy Seminar' at the Directors Guild Theatre on February 26, 2003 in North Hollywood, California. (Photo by Jon Kopaloff/Getty Images)
NBC NEWS -- Larry Wilmore --Pictured: The Daily Show's Larry Wilmore Discusses & Signs his book: I'd Rather We Get Casinos: And Other Black Thoughts -- Photo by: Giacinta Pace/NBC NewsWire
Actor Larry Wilmore arrives in an Audi TDI to the Audi Clean Diesel on June 23, 2009 in Beverly Hills, California. (Photo by Kevin Parry/WireImage)
LOS ANGELES, CA - SEPTEMBER 20: Larry Wilmore attends the Comedy Central Emmy After Party at Falcon on September 20, 2009 in Los Angeles, California. (Photo by Noel Vasquez/Getty Images)
BEVERLY HILLS, CA - AUGUST 01: Writer and producer Larry Wilmore arrives at The Paley Center for Media Presents 'Exporting Raymond' at The Paley Center for Media on August 1, 2011 in Beverly Hills, California. (Photo by Amanda Edwards/FilmMagic)
EAST RUTHERFORD, NJ - NOVEMBER 09: Larry Wilmore attends the Pittsburgh Steelers vs New York Jets game at MetLife Stadium on November 9, 2014 in East Rutherford, New Jersey. (Photo by Al Pereira/WireImage)
LOS ANGELES, CA - JANUARY 08: Larry Wilmore is seen 'Jimmy Kimmel Live' on January 08, 2015 in Los Angeles, California. (Photo by RB/Bauer-Griffin/GC Images)
JIMMY KIMMEL LIVE - Emmy Award-nominated 'Jimmy Kimmel Live' airs every weeknight (11:35 p.m. - 12:41 a.m., ET), packed with hilarious comedy bits and features a diverse lineup of guests including celebrities, athletes, musicians, comedians and humorous human interest subjects. The guests for THURSDAY, JANUARY 8 included actor Joaquin Phoenix ('Inherent Vice'), comedian Larry Wilmore ('The Nightly Show with Larry Wilmore') and musical guest Frankie Ballard. (Photo by Randy Holmes/ABC via Getty Images)** Local Caption ** LARRY WILMORE; JIMMY KIMMEL
PASADENA, CA - JANUARY 10: Writer Robin Thede, host Larry Wilmore and executive producer Rory Albanese speak onstage during the 'The Nightly Show with Larry Wilmore ' panel at the Comedy Central Networks portion of the 2015 Winter Television Critics Association press tour at the Langham Hotel on January 10, 2015 in Pasadena, California. (Photo by Frederick M. Brown/Getty Images)
NEW YORK, NY - JANUARY 19: Host Larry Wilmore appears on the debut episode of Comedy Central's 'The Nightly Show with Larry Wilmore' at The Nightly Show Studios on January 19, 2015 in New York City. (Photo by Stephen Lovekin/Getty Images for Comedy Central)
NEW YORK, NY - JANUARY 22: 'The Nightly Show' host Larry Wilmore attends 'The Nightly Show' Premiere Party at Stone Rose Lounge on January 22, 2015 in New York City. (Photo by Stephen Lovekin/Getty Images for Comedy Central)
NEW YORK, NY - SEPTEMBER 25: Larry Wilmore visits AOL Build Presents at AOL Studios In New York on September 25, 2015 in New York City. (Photo by Steve Mack/Getty Images)
NEW YORK, NY - JUNE 14: Comedian/TV host Larry Wilmore poses for a portrait at the American Black Film Festival on June 14, 2015 in New York City. (Photo by J. Countess/Getty Images Portrait)
NEW YORK, NY - SEPTEMBER 25: Larry Wilmore attends AOL Build Presents Larry Wilmore Of 'The Nightly Show' at AOL Studios In New York on September 25, 2015 in New York City. (Photo by Laura Cavanaugh/WireImage)
NEW YORK, NY - NOVEMBER 14: The Nightly Show Creative Team (L-R) Rory Albanese, Ricky Velez, Holly Walker, Host Larry Wilmore, Robin Thede, Jordan Carlos and Grace Parra attend The Paley Center For Media Presents: 'Keepin' It 100: An Evening With The Nightly Show With Larry Wilmore' at the Paley Center For Media on November 14, 2015 in New York City. (Photo by Mark Sagliocco/Getty Images)
NEW YORK, NY - NOVEMBER 14: Larry Wilmore attends the Paley Center for Media presents: 'Keepin' It 100: An Evening With The Nightly Show with Larry Wilmore' at Paley Center for Media on November 14, 2015 in New York City. (Photo by Chance Yeh/FilmMagic)
NEW YORK, NY - APRIL 13: Host Larry Wilmore (L) and Presidential Candidate Senator Bernie Sanders pose as he makes his fourth appearance on Comedy Central's 'The Nightly Show With Larry Wilmore' on April 13, 2016 in New York City. (Photo by Paul Zimmerman/Getty Images for Comedy Central)
WASHINGTON, DC - APRIL 29: Comedian Larry Wilmore attends The New Yorker's annual party kicking off The White House Correspondents' Association Dinner Weekend hosted by David Remnick at W Hotel Rooftop on April 29, 2016 in Washington, DC. (Photo by Dimitrios Kambouris/Getty Images for The New Yorker)
NEW YORK, NY - MAY 10: Larry Wilmore attends the National Comedy Center Honors George Carlin atthe Paley Center For Me (Photo by Rabbani and Solimene Photography/Getty Images)
LATE NIGHT WITH SETH MEYERS -- Episode 361 -- Pictured: (l-r) Nightly Show host, Larry Wilmore during an interview with host Seth Meyers on April 28, 2016 -- (Photo by: Lloyd Bishop/NBC/NBCU Photo Bank via Getty Images)
PASADENA, CA - JUNE 25: Comedian Larry Wilmore speaks during at Pasadena Convention Center on June 25, 2016 in Pasadena, California. (Photo by Michael Schwartz/Getty Images)