From 37315f877ef27d0f8585389f0c83cd00a31577c1 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 21 Nov 2016 15:22:48 +0100 Subject: Reworked server and client to do one mix and shutdown. This is done as cleanly as possible to track down any memory leaks. unfortunately there is still one async operation running on the nodes. when there should be none. So the nodes are still forced to stop with a. io_service.stop(). --- client/cmixclient.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/cmixclient.cpp') diff --git a/client/cmixclient.cpp b/client/cmixclient.cpp index 636398f..dafa869 100644 --- a/client/cmixclient.cpp +++ b/client/cmixclient.cpp @@ -83,12 +83,12 @@ void CMixClient::handle_key_exchange(size_t node_id, cmix_proto::KeyExchange con BOOST_LOG_TRIVIAL(trace) << "sending UserMessage: " << message.ShortDebugString(); network_connections.at(0).async_send(message); - size_t last_node_id = network_details.node_details.size() - 1; - network_connections.at(last_node_id).async_receive( - [this, last_node_id](cmix_proto::CMixMessage const& message) { - handle_message(last_node_id, message); - } - ); +// size_t last_node_id = network_details.node_details.size() - 1; +// network_connections.at(last_node_id).async_receive( +// [this, last_node_id](cmix_proto::CMixMessage const& message) { +// handle_message(last_node_id, message); +// } +// ); } } -- cgit v1.2.3-70-g09d2