Simplify add/remove port control flow

Review Request #1786 — Created Sept. 18, 2022 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default

Reviewers

Since this is checking a bunch of enum values and then returning immediately, it seems that a switch is a better option here.

Additionally, purple_upnp_discover handles both undiscovered and in-progress discovering, so no need to special case those here.

Compile only.

Commits

Files