Spoilers ahead if you haven’t seen the final episode of “Crashing.”

Pete Holmes — we’re talking here about the slightly lummoxy, less successful version of himself the comedian plays on the HBO series “Crashing” — just wanted a seat at the table. Literally. One of the running gags in “Crashing” was Pete’s passive-aggressive campaign to be allowed to sit at the hallowed “comedian’s table” at the Comedy Cellar.

Pete got his seat, finally, near the end of the show’s Season 3 finale on Sunday, in a crescendoing happy ending that saw him get the girl, too. (Get her back, that is — he was last seen skipping down Sixth Avenue in an apparent reunion with his former girlfriend and true love, Ali, played by Jamie Lee.) But at virtually the same moment, the actual Holmes had the seat pulled out from under him: He tweeted on Friday to confirm that HBO had canceled his show.

When “Crashing” premiered in 2017, created by Holmes and sporting Judd Apatow as an executive producer and writer, three seasons might have seemed generous. Here was another show featuring a stand-up comedian’s lightly fictionalized alter ego. Here was another show about a white male underdog trying to overcome his awkwardness.

The one obviously unusual thing about the series — that the character, like Holmes, was a Christian determined to focus on reasonably clean, uplifting humor — wasn’t going to increase its cachet in the precincts of prestige-cable and streaming comedy.