htc: free ourselves from the tyranny of numerical enums

This commit is contained in:
Michael Scire
2021-02-08 06:48:30 -08:00
committed by SciresM
parent 2341f18edd
commit e40eece74e
6 changed files with 131 additions and 87 deletions

View File

@@ -59,7 +59,7 @@ namespace ams::htclow::mux {
m_send_buffer.Clear();
/* Set our state to shutdown. */
this->SetState(ChannelState_Shutdown);
this->SetState(ChannelState_Disconnected);
}
void ChannelImpl::SetState(ChannelState state) {
@@ -78,7 +78,7 @@ namespace ams::htclow::mux {
}
/* If relevant, notify disconnect. */
if (m_state == ChannelState_Shutdown) {
if (m_state == ChannelState_Disconnected) {
m_task_manager->NotifyDisconnect(m_channel);
}
}