aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network/connect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-network/connect.cpp')
-rw-r--r--libcmix-network/connect.cpp8
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);
}