mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-29 23:50:59 -06:00
use lock_guard instead
This commit is contained in:
parent
5f1ee49d10
commit
7ac0ed97f2
@ -255,7 +255,7 @@ void InputAPIAddWindow::on_controller_dropdown(wxCommandEvent& event)
|
||||
auto available_controllers = provider->get_controllers();
|
||||
|
||||
{
|
||||
std::scoped_lock lock{data->mutex};
|
||||
std::lock_guard lock{data->mutex};
|
||||
if(!data->discardResult)
|
||||
{
|
||||
wxCommandEvent event(wxControllersRefreshed);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user