(Apple HID) Don't call IOHIDDeviceClose in removal callback function

This commit is contained in:
Twinaphex 2015-03-06 21:55:43 +01:00
parent 9eb2c8725f
commit 935d6a54b8

View File

@ -136,8 +136,6 @@ static void remove_device(void* context, IOReturn result, void* sender)
pad_connection_pad_deinit(&slots[connection->slot], connection->slot);
free(connection);
}
IOHIDDeviceClose(sender, kIOHIDOptionsTypeSeizeDevice);
}
static void hid_device_report(void* context, IOReturn result, void *sender,