void OnDisable() { if (m_Sender.PortOpen) { m_Sender.Close(); } }
protected override void OnDisable() { base.OnDisable(); if (m_Listener.PortOpen) { m_Listener.Close(); } }
private void OnDestroy() { if (artnet == null) { return; } artnet.Close(); }
static void OnProcessExit(object sender, EventArgs e) { config.Save(); if (artNet != null) { artNet.Close(); } gsl.Stop(); }
void OnDisable() { artnet.Close(); SaveDataMap(); if (dMX != null) { dMX.Quit(); dMX = null; } }
public void Stop() { if (reliableSocket != null) { reliableSocket.Dispose(); } if (socket != null) { socket.Close(); } }
private void OnDestroy() { artnet.Close(); }
public void CloseSocket() { socket.Close(); socket.Dispose(); socketClosed = true; }