Sfoglia il codice sorgente

Fix client shutdown lock leak

AlexisSliwak 4 settimane fa
parent
commit
e653beab14
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Sunrise/src/client/runtime/client_runtime_lifecycle.cpp

+ 2 - 0
Sunrise/src/client/runtime/client_runtime_lifecycle.cpp

@@ -56,9 +56,11 @@ bool shutdown() noexcept {
     hooks::teleport::uninstall();
     hooks::queuez::uninstall();
     if (!hooks::config_getter::uninstall()) {
+        ReleaseSRWLockExclusive(&runtime::g_lock);
         return false;
     }
     if (!hooks::assert_handler::uninstall()) {
+        ReleaseSRWLockExclusive(&runtime::g_lock);
         return false;
     }
     if (!hooks::retail_log::uninstall()) {