How do you cancel a pending connection with NetworkedMultiplayerENet?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rofer

I can start a connection with NetworkedMultiplayerENet by calling create_client, then attaching it to my scene tree.

How do I cancel a connection once I’ve started it, but before it’s actually connected? Is it enough to unset the network_peer or do I need to do something more?