Procházet zdrojové kódy

Merge pull request #13 from AlexisSliwak/fix/client-shutdown-lock-release

Fix client shutdown lock leak
stan před 4 týdny
rodič
revize
d4a0cd7102

+ 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()) {