If I attempt to connect an ExitGames.Client.Photon.PhotonPeer to an unhosted local port (nothing is listening on this port), then eventually the DebugReturn method of the IPhotonPeerListener implentation is invoked saying the connection was actively refused, which is what I expect.
However, when I try to reconnect, photon says the peer is already in a connected state, and the connect request will be ignored.
It seems like the only way to detect this case is to catch the ERROR debug level in DebugReturn, and manually call disconnect on the peer. This seems really clunky, so maybe I'm missing something obvious.
Is there a better way to deal with this scenario?
However, when I try to reconnect, photon says the peer is already in a connected state, and the connect request will be ignored.
It seems like the only way to detect this case is to catch the ERROR debug level in DebugReturn, and manually call disconnect on the peer. This seems really clunky, so maybe I'm missing something obvious.
Is there a better way to deal with this scenario?