Fall back to waiting when socket is not yet ready

This can happen with plugin groups.
This commit is contained in:
Robbert van der Helm
2020-10-26 22:13:55 +01:00
parent 016ceccc18
commit 5b00ddb0c4
2 changed files with 26 additions and 6 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ void GroupBridge::accept_requests() {
// is only used within this context we don't need any locks.
const size_t plugin_id = next_plugin_id.fetch_add(1);
active_plugins[plugin_id] =
std::pair(std::jthread([&, request]() {
std::pair(std::jthread([this, plugin_id]() {
handle_plugin_dispatch(plugin_id);
}),
std::move(bridge));