From: Klas Lindfors Date: Wed, 10 Oct 2012 06:10:30 +0000 (+0200) Subject: don't do IOHIDManagerClose() in stop X-Git-Tag: v1.8.1~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f90b0a9fa85021ac433a1461b23685af1ed2b420;p=yubikey-personalization don't do IOHIDManagerClose() in stop it's used for matching IOHIDManagerOpen() not IOHIDManagerCreate() --- 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;