W.V. Republicans picked up a state Senate seat Thursday night as a win for their candidate, who is also running to be the party’s nominee for president.

State Sen. Mark Schoesler, who was the Republican nominee in 2016, defeated incumbent Sen. Mary M. Hannon, a Democrat, in a special election to replace retiring Republican Sen. Tim Johnson, who died of a brain tumor in December.

Hannon, however, is not running again in 2018.

Schoeser, who has served in the state Senate since 2016, won easily in the Republican primary on Nov. 12, narrowly defeating former Rep. Robert St. Clair Jr., a Democrat.

The race between Schoeslers father and son, a father and a son, was considered close in the early stages of the race, but both were in trouble during the campaign.

St. Claire won with 57 percent of the vote, followed by his son with 47 percent and then Hannon with 37 percent.

Hahn lost to Schoesley, 46 percent to 46 percent, after an endorsement from former Rep., Jim Wright, who resigned in May after the governor of Virginia, Bob McDonnell, and his wife, Maureen, resigned from the legislature.

The pair did not return a request for comment from The Associated Press.

Schoesler’s win came less than two weeks after the Associated Press reported that the governor had secretly taped conversations with a top aide to the governor, then-Attorney General Ken Cuccinelli II, to help cover up the governor’s affair with a lobbyist, and the governor told aides to use a video feed to hide the recordings.

The governor has repeatedly denied the allegations.