public void Disconnect() { stage = PerStage.NotConnected; try { if (m_socket != null) { m_socket.Close(); } } catch { } if (isClient) { JHSNetworkClient.Disconnect(this); } else { JHSNetworkServer.Disconnect(this); } }
public void Disconnect() { stage = PerStage.NotConnected; try { if (m_socket != null) { m_socket.Close(); } } catch { } if (isClient) { JHSNetworkClient.Disconnect(this); } else { JHSNetworkServer.Disconnect(this); } }