diff options
| author | Techjar <tecknojar@gmail.com> | 2018-11-10 22:37:49 -0500 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2018-11-12 22:32:18 -0500 |
| commit | ef89e4e70c256989ede03d33145ee05be141dc06 (patch) | |
| tree | 3ead829f6e3470797daa744e31e73234120a5705 /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | 97e3200f5799cb43f508fd6c385321bc778c5ffb (diff) | |
NetPlay: Sync power button event
This fixes the deadlock on shutdown when Wii Remotes are in use.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index e2b9e15791..6899508c17 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -744,6 +744,10 @@ bool MainWindow::RequestStop() if (Core::GetState() == Core::State::Paused) Core::SetState(Core::State::Running); + // Tell NetPlay about the power event + if (NetPlay::IsNetPlayRunning()) + NetPlay::SendPowerButtonEvent(); + return true; } |
