He’s facing hard time. But the court may let him plead down to a misdewiener.

Cops caught up with a 24-year-old burglar Sunday afternoon because he took a break from his escape to masturbate in a nearby gangway, police said.

Gentry | Chicago Police Dept

A Wicker Park resident called police around noontime after seeing a man enter his home and steal an iPad in the 2000 block of West Le Moyne.

Cops were speaking with the victim when another 911 call was dispatched: A woman on a nearby street said a man was masturbating outside of her house—and her description of the man closely matched the burglary offender.

Officers said they rolled up to the woman’s home just in time to see Michael Gentry take off running. They caught up with him in a yard in the 1400 block of North Leavitt.

He just happened to be carrying an iPad and the burglary victim was able to identify him, police said.

Gentry is charged with one count of burglary. Bail is set at $250,000.