mirror of https://github.com/procxx/kepka.git
Version 1.3.7: Possible bug fix.
Attempt to fix strange crash in SPMediaKeyTap.
This commit is contained in:
parent
e60311811b
commit
b5bc7a22af
|
@ -77,7 +77,10 @@ static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEv
|
||||||
CGEventMaskBit(NX_SYSDEFINED),
|
CGEventMaskBit(NX_SYSDEFINED),
|
||||||
tapEventCallback,
|
tapEventCallback,
|
||||||
self);
|
self);
|
||||||
assert(_eventPort != NULL);
|
if (!_eventPort) {
|
||||||
|
[self stopWatchingMediaKeys];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_eventPortSource = CFMachPortCreateRunLoopSource(kCFAllocatorSystemDefault, _eventPort, 0);
|
_eventPortSource = CFMachPortCreateRunLoopSource(kCFAllocatorSystemDefault, _eventPort, 0);
|
||||||
assert(_eventPortSource != NULL);
|
assert(_eventPortSource != NULL);
|
||||||
|
|
Loading…
Reference in New Issue