mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -06:00
sys_usbd: fix usb handler deinitialization
This commit is contained in:
parent
9a91fef337
commit
4fbbdf8732
@ -352,14 +352,14 @@ usb_handler_thread::~usb_handler_thread()
|
|||||||
open_pipes.clear();
|
open_pipes.clear();
|
||||||
usb_devices.clear();
|
usb_devices.clear();
|
||||||
|
|
||||||
if (ctx)
|
|
||||||
libusb_exit(ctx);
|
|
||||||
|
|
||||||
for (u32 index = 0; index < MAX_SYS_USBD_TRANSFERS; index++)
|
for (u32 index = 0; index < MAX_SYS_USBD_TRANSFERS; index++)
|
||||||
{
|
{
|
||||||
if (transfers[index].transfer)
|
if (transfers[index].transfer)
|
||||||
libusb_free_transfer(transfers[index].transfer);
|
libusb_free_transfer(transfers[index].transfer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx)
|
||||||
|
libusb_exit(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_handler_thread::operator()()
|
void usb_handler_thread::operator()()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user