A federal magistrate judge is putting a hold on plans to depose Camille Cosby in a defamation lawsuit brought by seven women who have accused her husband, Bill Cosby, of drugging and, in certain cases, sexually assaulting them.

Camille Cosby was scheduled for a deposition on Wednesday. Judge Daniel Hennessy last week rejected her efforts to quash a subpoena, but on Tuesday granted her motion to stay the deposition until she appeals that ruling.

Hennessy wrote that there was the prospect of “irreparable injury” if the deposition went forward before Cosby got a chance to appeal. He wrote that the deposition should be rescheduled if her appeal is denied.

Her attorneys claim that a Massachusetts law prohibits any spouse from testifying as to their private marital conversations, but Hennessy concluded that the law only restricts testimony at a trial and not a deposition. The plaintiffs’ attorneys had sought to go forward with her deposition, arguing that it would needlessly delay discovery in the case and impose significant expense on the plaintiffs’ legal team.

Last week, Bill Cosby was charged with aggravated indecent assault in a case involving Andrea Constand in 2004, when she was director of operations for Temple University’s women’s basketball team. Cosby’s attorneys called the criminal case “unjustified” and said that their client would be exonerated.

The defamation lawsuit was filed last year by Tamara Green, who claims that Cosby’s statements denying her accusations were false and defamatory. She was joined in her case by six other accusers. Cosby filed a counterclaim last month, contending that the plaintiffs in the case have defamed him with “multi-decade old, false, uncorroborated, opportunistic allegations.”