From b4b471523f44e60433fb56bdf675e649409c9a3d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 22 May 2020 19:52:45 +0200 Subject: [PATCH] Fix assertion in group host connection handler --- src/wine-host/bridges/group.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wine-host/bridges/group.cpp b/src/wine-host/bridges/group.cpp index 14fa9dcc..5510d36a 100644 --- a/src/wine-host/bridges/group.cpp +++ b/src/wine-host/bridges/group.cpp @@ -137,7 +137,8 @@ void GroupBridge::handle_host_plugin(const GroupRequest request) { void GroupBridge::handle_incoming_connections() { accept_requests(); - logger.log("Now accepting incoming connections"); + logger.log( + "Group host is up and running, now accepting incoming connections"); io_context.run(); } @@ -166,14 +167,14 @@ void GroupBridge::accept_requests() { // Collisions in the generated socket names should be very rare, but // it could in theory happen - assert(active_plugins.find(parameters) != active_plugins.end()); + assert(active_plugins.find(parameters) == active_plugins.end()); // CreateThread() doesn't support multiple arguments and requires // manualy memory management. handle_host_plugin_parameters* thread_params = new std::pair(this, parameters); active_plugins[parameters] = - Win32Thread(handle_host_plugin_proxy, &thread_params); + Win32Thread(handle_host_plugin_proxy, thread_params); accept_requests(); });