public void StopWatchingMediaKeys() { if (tapThread != null) { tapThread.Stop(); tapThread = null; } if (eventPort != null) { eventPort.Invalidate(); eventPort.Dispose(); eventPort = null; } if (eventPortSource != null) { eventPortSource.Invalidate(); eventPortSource.Dispose(); eventPortSource = null; } }
public void Stop() { CFRunLoop.Stop(); }