It took two ballots and came down to a single vote, but Bill Gardner was elected to an historic 22nd term as New Hampshire’s Secretary of State by the new, Democrat-dominated New Hampshire legislature on Wednesday.

Under the rules, either Gardner or his opponent, fellow Democrat Colin Van Ostern needed 209 votes to win. The first ballot results were Van Ostern 207, Gardner 208 and one “scattered” vote (a ballot for a non-candidate).

The newly-elected (and clearly frustrated) Speaker of the House, Democrat Steve Shurtleff took the body into recess while supporters of the two candidates re-grouped. Then after a brief 3-minute speech for each candidate, the 416 House and Senate members present voted again, and Gardner got his 209.

“In my years in office, I have overseen 500 recounts where 11 ended in a tie and 32 ended up being decided by one vote,” Gardner said in his acceptance speech. “I never actually thought of myself ending up in one like that.”

Gov. Chris Sununu, who had predicted a Gardner win (though Sununu predicted it would be “overwhelming”) greeted the incumbent in the Secretary of State’s office with the cry “Forty more years!”

Van Ostern shook hands with Gardner and and said afterwards “I’m proud to get within a vote of Bill Gardner. No one’s beat him in 42 years.He’s a legend in our politics and in our state.” The Democratic Party also tweeted out a message of support (“he has demonstrated great dedication and love for NH”)– which shouldn’t be news, given that Gardner is a Democrat.

Some of his fellow party members weren’t happy however, particularly progressives who haven’t forgiven Gardner for his participation on President Trump’s anti-voter-fraud commission. They grumbled about the fact that at least 33 of their own joined with the GOP minority to support the moderate Gardner and defeat a loyal partisan like Van Osten. One even tweeted that the New Hampshire Democratic Party should “find those that voted for Bill Gardner over Colin Van Ostern and punish them.” (It was a secret ballot, so…)

Gardner’s re-election is yet another data point indicating that New Hampshire Democrats aren’t in the same progressive mode as the national party. In September’s primaries, for example, progressive candidates lost to more moderate competitors in the races for governor and the First Congressional District. And neither of the new legislative leaders, Speaker Shurtleff and Senate President Donna Soucy, will be mistaken for Bernie Sanders or Alexandria Ocasio-Cortez.

It’s widely believed that the 70-year-old Gardner won’t seek another term after this one, a fact that one of his supporters, Rep. Ned Gordon, reiterated in urging his colleagues to re-elect him. “I would like to see Bill finish his career gracefully,” Gordon said.