stop threads before destroying pad_connections

This commit is contained in:
Toad King 2015-04-06 22:24:01 -05:00
parent 3c67a80713
commit 730be95302

View File

@ -466,11 +466,11 @@ static void libusb_hid_free(void *data)
{
libusb_hid_t *hid = (libusb_hid_t*)data;
pad_connection_destroy(hid->slots);
while(adapters.next)
remove_adapter(hid, adapters.next->device);
pad_connection_destroy(hid->slots);
libusb_hotplug_deregister_callback(NULL, hid->hp);
libusb_exit(NULL);