If you double-click on a port, you get a "cannot link port to itself" error. I propose that it would be better UX in this case to just treat it as a single click on the port, and let you continue drawing the wire.
This also addresses a situation seen on some 2.11 lab PCs where a single click is misinterpreted as a double click.