diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2017-02-11 14:48:52 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2017-02-11 17:54:40 +0100 |
| commit | 623dffe2c054d1639dbf9c8f21ddfb088c7950fb (patch) | |
| tree | f8159c5b3cf9872f9b271d03ad5a4b65ecec19b8 /libcmix-network/connect.cpp | |
| parent | b229dc91d8825689c5e66264b462ce01398e621e (diff) | |
| download | cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.tar.gz cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.tar.bz2 cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.zip | |
Working Ed25519 Implementation of libcmix.
Diffstat (limited to 'libcmix-network/connect.cpp')
| -rw-r--r-- | libcmix-network/connect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<tcp, stream_socket_service<tcp>>& 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); } |
