A former Windsor police officer has been sentenced to six months of probation for an assault.

John Jubinville, 51, pleaded guilty Tuesday after admitting to hitting a suspect with a closed fist on Feb. 15, 2017, after the man was being belligerent in the back of the prisoner van.

The suspect wasn't injured, but Jubinville admitted to the "momentary loss of temper" because it was similar to an incident when the cop was hurt.

In 2011, Jubinville said he was "donkey kicked" by a suspect, and the officer suffered a broken neck.

“He is ashamed of what he did,” said his lawyer Andrew Bradie. “A 30-year career, and probably three to four seconds of bad judgement.”

Jubinville retired from the force on March 29, 2018.

A second charge of assault was withdrawn by Crown attorney Fred Creed.

Since he pleaded guilty and this is a conditional sentence, Jubinville's record will be cleared after three and a half years and he won't have to ask for a pardon.