private void Cleanup() { if (mNetwork != null) { mNetwork.Dispose(); mNetwork = null; } }
public override void Disconnect() { if (_webrtcNetwork != null) { _webrtcNetwork.Dispose(); _webrtcNetwork = null; } base.Disconnect(); }
/// <summary> /// Deinitializes the inner network /// </summary> /// <returns>Whether the deinitialization can be done</returns> public bool Deinit() { if (m_Network != null) { m_Network.Dispose(); m_Network = null; NodeState = State.Uninitialized; return(true); } return(false); }
private void Cleanup() { if (mNetwork != null) { if (mIsServer) { mNetwork.StopServer(); mIsServer = false; } mNetwork.Dispose(); mNetwork = null; } }
void Cleanup() { network?.Dispose(); network = null; }
/// <summary> /// Disposes the internal WebRTC network, /// then destroys this <see cref="APNetwork"/> instance /// </summary> public void Dispose() { network.Dispose(); Destroy(gameObject); }