Huma Abedin and Anthony Weiner agreed Wednesday to finalize their divorce out of court, seeking to protect their 6-year-old son from an embarrassing public separation.
The agreement between the top aide to Hillary Clinton and the convicted ex-congressman came the same day their case was scheduled to be heard by Manhattan Supreme Court Justice Michael Katz.
"In order to ensure the proceedings have a minimal impact on their child, the parties have decided to finalize their divorce swiftly and privately," Abedin attorney Charles Miller said in a statement.
The judge confirmed from the bench that the case had been discontinued.
Abedin filed for divorce in May and listed the case as "contested," indicating there was a dispute between her and her husband.
Matrimonial cases are sealed. The couple could re-file their divorce as "uncontested," meaning they would not have to appear in court.
A call to Weiner's attorney was not immediately returned. He is currently serving a 21-month sentence for sexting a teenage girl.