FORT WORTH, Texas (AP) — An appeals court has ordered a new trial for a man whom a judge, impatient with the defendant’s disruptions, ordered to be jolted several times with 50,000 volts from a shock belt.

The 8th Texas Court of Appeals in El Paso ordered the new trial for Terry Lee Morris.

READ MORE: Motorcyclist Killed In Arlington Crash Wasn't Wearing A Helmet

He was convicted in 2014 of soliciting a sexual performance from an underage girl.

READ MORE: Arlington Father Shawn Andrew Kuhleman 1 Of 2 Killed In Chemical Incident At Plant Near Houston

The court ruled that state District Judge George Gallagher of Tarrant County violated Morris’ civil rights when he ordered a bailiff, on three occasions, to shock Morris as punishment for not giving proper answers to Gallagher’s questions.

Judge George Gallagher (Getty Images)

Shock belts are placed on defendants’ legs. The appeals court said they are to be used only if a defendant becomes violent, not to enforce decorum.

MORE NEWS: Kaufman County Deputy On Administrative Leave Pending Investigation Into Handling Of Troubled Teen

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)