Frigidaire ice maker not dispensing ice

Ice maker is making ice but won’t dispense. When u put a cup up to it; the door flips and closes immediately. The motor doesn’t engage. The door switch that controls the freezer door light isn’t turning off the light. I thought it was that. I checked continuity, but it was fine. I even bought a new switch just In case I checked wrong, but to no avail. What do I check next?