]> err.no Git - yubikey-personalization/commitdiff
don't do IOHIDManagerClose() in stop
authorKlas Lindfors <klas@yubico.com>
Wed, 10 Oct 2012 06:10:30 +0000 (08:10 +0200)
committerKlas Lindfors <klas@yubico.com>
Wed, 10 Oct 2012 07:30:52 +0000 (09:30 +0200)
it's used for matching IOHIDManagerOpen() not IOHIDManagerCreate()

ykcore/ykcore_osx.c

index 4b3bac3cb5a977ccf66bd2b2b2cc289499f0a29c..55c4786145f5580283c9da6a1d79c2e48c058f9a 100644 (file)
@@ -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;