diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-21 15:22:48 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-21 15:22:48 +0100 |
| commit | 37315f877ef27d0f8585389f0c83cd00a31577c1 (patch) | |
| tree | caead8a996811c154859d97ae3c5c946ae8da4b6 /client | |
| parent | e4cf0d04c4afff98603df440d12a4a19b3717a34 (diff) | |
| download | cmix-37315f877ef27d0f8585389f0c83cd00a31577c1.tar.gz cmix-37315f877ef27d0f8585389f0c83cd00a31577c1.tar.bz2 cmix-37315f877ef27d0f8585389f0c83cd00a31577c1.zip | |
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().
Diffstat (limited to 'client')
| -rw-r--r-- | client/cmixclient.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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); +// } +// ); } } |
