public virtual void Dispose(bool disposing) { if (disposing) { if (AckTimer != null) { AckTimer.Dispose(); } if (PingTimer != null) { PingTimer.Dispose(); } if (StatsTimer != null) { StatsTimer.Dispose(); } if (ConnectedEvent != null) { ConnectedEvent.Close(); } // Force all the CAPS connections closed for this simulator if (Caps != null) { Caps.Disconnect(true); } } }
/// <summary> /// Called when this Simulator object is being destroyed /// </summary> public void Dispose() { // Force all the CAPS connections closed for this simulator if (Caps != null) { Caps.Disconnect(true); } }