mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 18:33:00 +00:00
GCAdapter: only join worker thread if running & joinable
This commit is contained in:
parent
4524e1bd54
commit
d840ed90e1
|
@ -265,7 +265,9 @@ void Adapter::Reset() {
|
||||||
if (adapter_thread_running) {
|
if (adapter_thread_running) {
|
||||||
adapter_thread_running = false;
|
adapter_thread_running = false;
|
||||||
}
|
}
|
||||||
adapter_input_thread.join();
|
if (adapter_input_thread.joinable()) {
|
||||||
|
adapter_input_thread.join();
|
||||||
|
}
|
||||||
|
|
||||||
adapter_controllers_status.fill(ControllerTypes::None);
|
adapter_controllers_status.fill(ControllerTypes::None);
|
||||||
get_origin.fill(true);
|
get_origin.fill(true);
|
||||||
|
|
Loading…
Reference in a new issue