fix race when external card is already inserted
Merge pull request #519 from wolfmanjm/upstreamedge

fix race when external card is already inserted