A producer for ESPN was busted after he was caught peering into his neighbor's window and masturbating while she was getting dressed.

Neil Goldberg, 52, turned himself in to authorities Tuesday. He was arrested on a warrant charging him with public indecency, simple trespass, disorderly conduct and breach of peace, according to police.

Goldberg -- who lives in the same complex as the woman -- was busted after a person walking their dog told cops she saw a man standing on a stool and masturbating while looking into the window.

The witness claims when Goldberg saw the person, he immediately stopped and walked back inside his home.

Goldberg admitted to watching his neighbor get dressed in her bedroom, according to police.

He posted $1,000 bail and is slated to appear before a judge in Superior Court in Hartford in late October.