mirror of
https://github.com/cathery/sys-con.git
synced 2024-11-16 14:09:51 +00:00
Close USB interfaces only after closing USB threads
This commit is contained in:
parent
0322aef97c
commit
1705f4213f
@ -42,13 +42,15 @@ Result SwitchAbstractedPadHandler::Initialize()
|
||||
|
||||
void SwitchAbstractedPadHandler::Exit()
|
||||
{
|
||||
m_controllerHandler.Exit();
|
||||
|
||||
if (DoesControllerSupport(GetController()->GetType(), SUPPORTS_NOTHING))
|
||||
{
|
||||
m_controllerHandler.Exit();
|
||||
return;
|
||||
}
|
||||
|
||||
ExitInputThread();
|
||||
ExitOutputThread();
|
||||
m_controllerHandler.Exit();
|
||||
ExitAbstractedPadState();
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,15 @@ Result SwitchHDLHandler::Initialize()
|
||||
|
||||
void SwitchHDLHandler::Exit()
|
||||
{
|
||||
m_controllerHandler.Exit();
|
||||
|
||||
if (DoesControllerSupport(GetController()->GetType(), SUPPORTS_NOTHING))
|
||||
{
|
||||
m_controllerHandler.Exit();
|
||||
return;
|
||||
}
|
||||
|
||||
ExitInputThread();
|
||||
ExitOutputThread();
|
||||
m_controllerHandler.Exit();
|
||||
ExitHdlState();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user