mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix potential issue in GUI thread mutual recursion
While the assumption that this is always the last element should hold true, there may be exceptions so better be safe than sorry.
This commit is contained in:
@@ -273,7 +273,9 @@ class Vst3Bridge : public HostBridge {
|
||||
// once we receive a response
|
||||
std::lock_guard lock(mutual_recursion_contexts_mutex);
|
||||
current_io_context->stop();
|
||||
mutual_recursion_contexts.pop_back();
|
||||
mutual_recursion_contexts.erase(
|
||||
std::find(mutual_recursion_contexts.begin(),
|
||||
mutual_recursion_contexts.end(), current_io_context));
|
||||
|
||||
response_promise.set_value(response);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user