mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
sys_usbd: fix usb handler deinitialization
This commit is contained in:
parent
9a91fef337
commit
4fbbdf8732
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue