mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
![Léo Lam](/assets/img/avatar_default.png)
If FindWiimotes() took more time than the UI shutting down, the scanner would try connecting a Wiimote and sending an event to the UI code long after it has shut down, which causes a segfault. This fixes the race by ignoring any found Wiimotes during shutdown. Normally this would have never happened, but it is possible with hidapi since Wiimotes can be connected before Dolphin starts.