Skip to content

Commit

Permalink
fix(ScriptRunner): fix deadlock (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbeardad authored Mar 4, 2025
1 parent d3daa77 commit 92b9376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/ScriptRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,8 @@ void ScriptRunner::spew_error(const std::string& p) {


void ScriptRunner::reset_scripts() {
std::scoped_lock _{ m_access_mutex };
std::scoped_lock __{ g_framework->get_hook_monitor_mutex() }; // Stops D3D monitor from attempting to re-hook during long script startups
std::scoped_lock _{ m_access_mutex };

{
std::unique_lock _{ m_script_error_mutex };
Expand Down

0 comments on commit 92b9376

Please sign in to comment.