From deb9908452bef692b69787cbf9eb9740e3dc6b1c Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Sat, 6 Jun 2026 02:07:22 -0400 Subject: [PATCH] Swap NpWebApi global mutex to recursive (#4529) It's recursive in the actual library, and since our implementation in thoroughly based on the actual library, this is needed for our code to function appropriately. --- src/core/libraries/np/np_web_api/np_web_api_internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libraries/np/np_web_api/np_web_api_internal.cpp b/src/core/libraries/np/np_web_api/np_web_api_internal.cpp index 7b8e0a17b..6bf67a850 100644 --- a/src/core/libraries/np/np_web_api/np_web_api_internal.cpp +++ b/src/core/libraries/np/np_web_api/np_web_api_internal.cpp @@ -12,7 +12,7 @@ namespace Libraries::Np::NpWebApi { -static std::mutex g_global_mutex; +static std::recursive_mutex g_global_mutex; static std::map g_contexts; static s32 g_library_context_count = 0; static s32 g_user_context_count = 0;