Whirlpool dryer won't stop running

The dryer works fine, but it won’t stop running. The timer switch turns but then stops before it gets to the point on the dial where it’s supposed to stop running.