Sfoglia il codice sorgente

input_common/udp: Ensure that UDP is shut down within Shutdown()

Previously the UDP backend would never actually get shut down.
Lioncash 6 anni fa
parent
commit
c7678c3044
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/input_common/main.cpp

+ 1 - 0
src/input_common/main.cpp

@@ -41,6 +41,7 @@ void Shutdown() {
     Input::UnregisterFactory<Input::MotionDevice>("motion_emu");
     motion_emu.reset();
     sdl.reset();
+    udp.reset();
 }
 
 Keyboard* GetKeyboard() {