mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-11 06:48:43 -06:00
fix: Various pattern execution race conditions
This commit is contained in:
@@ -37,7 +37,7 @@ namespace hex::plugin::builtin {
|
||||
if (!runtime.arePatternsValid()) {
|
||||
this->m_patternDrawer.draw({});
|
||||
} else {
|
||||
auto lock = ContentRegistry::PatternLanguage::getRuntimeLock();
|
||||
auto lock = std::scoped_lock(ContentRegistry::PatternLanguage::getRuntimeLock());
|
||||
|
||||
if (this->m_shouldReset) {
|
||||
this->m_patternDrawer.reset();
|
||||
|
||||
Reference in New Issue
Block a user