From 623dffe2c054d1639dbf9c8f21ddfb088c7950fb Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sat, 11 Feb 2017 14:48:52 +0100 Subject: Working Ed25519 Implementation of libcmix. --- libcmix-network/connect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libcmix-network/connect.cpp') diff --git a/libcmix-network/connect.cpp b/libcmix-network/connect.cpp index e80a6d4..4bebf9d 100644 --- a/libcmix-network/connect.cpp +++ b/libcmix-network/connect.cpp @@ -70,11 +70,11 @@ void async_connect_iteration(basic_socket>& sock info->retry_timer.expires_from_now(boost::posix_time::seconds(seconds_to_wait)); - info->retry_timer.async_wait([&socket, info, on_connect](boost::system::error_code const& ec){ - if(ec == boost::system::errc::operation_canceled) { + info->retry_timer.async_wait([&socket, info, on_connect](boost::system::error_code const& ec2){ + if(ec2 == boost::system::errc::operation_canceled) { return; - } else if(ec) { - BOOST_LOG_TRIVIAL(error) << "Something went wrong with the retry timer: " << ec.message(); + } else if(ec2) { + BOOST_LOG_TRIVIAL(error) << "Something went wrong with the retry timer: " << ec2.message(); } else { async_connect_iteration(socket, info, on_connect); } -- cgit v1.2.3-70-g09d2