Simplify add/remove port control flow
Review Request #1786 — Created Sept. 18, 2022 and submitted
Since this is checking a bunch of enum values and then returning immediately, it seems that a
switchis a better option here.
purple_upnp_discoverhandles both undiscovered and in-progress discovering, so no need to special case those here.