mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-25 10:40:31 -05:00
do not hold main lock in callback handling
This commit is contained in:
@@ -515,7 +515,6 @@ extern "C" void FreeSceneSwitcher()
|
||||
|
||||
void handleSceneChange(SwitcherData *s)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(s->m);
|
||||
//stop waiting if scene was manually changed
|
||||
if (s->sceneChangedDuringWait())
|
||||
s->cv.notify_one();
|
||||
|
||||
Reference in New Issue
Block a user