From f90b0a9fa85021ac433a1461b23685af1ed2b420 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 10 Oct 2012 08:10:30 +0200 Subject: [PATCH] don't do IOHIDManagerClose() in stop it's used for matching IOHIDManagerOpen() not IOHIDManagerCreate() --- ykcore/ykcore_osx.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 4b3bac3..55c4786 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -54,13 +54,9 @@ int _ykusb_start(void) int _ykusb_stop(void) { if (ykosxManager != NULL) { - _ykusb_IOReturn = IOHIDManagerClose( ykosxManager, 0L ); CFRelease(ykosxManager); - - if (_ykusb_IOReturn == kIOReturnSuccess) { - ykosxManager = NULL; - return 1; - } + ykosxManager = NULL; + return 1; } yk_errno = YK_EUSBERR; -- 2.39.5