/// <summary> /// Stop tracking a timer, and kill it /// </summary> /// <param name="t">The timer to forget and kill</param> public void RemoveTimer(ref WrappedTimer t) { lock (heardof) { if (heardof.Contains(t)) { heardof.Remove(t); } } t.Dispose(); t = null; }
/// <summary> /// Stop tracking a timer, and kill it /// </summary> /// <param name="t">The timer to forget and kill</param> public void RemoveTimer(ref WrappedTimer t) { lock (heardof) { if (heardof.Contains(t)) heardof.Remove(t); } t.Dispose(); t = null; }