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