summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-07-09 13:56:22 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-07-09 14:35:29 +0200
commitac6a74595c679c22ae13eca0609a745e431b339c (patch)
tree524ba770b6df2dc667abe8b562b31b361152bce5 /louloulibs
parent4130f1679d909e90d691d47d07cd0e0d4fbe64e1 (diff)
downloadbiboumi-ac6a74595c679c22ae13eca0609a745e431b339c.tar.gz
biboumi-ac6a74595c679c22ae13eca0609a745e431b339c.tar.bz2
biboumi-ac6a74595c679c22ae13eca0609a745e431b339c.tar.xz
biboumi-ac6a74595c679c22ae13eca0609a745e431b339c.zip
Send the cares error message before cleaning it
fix #3083
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/network/tcp_socket_handler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp
index f647b86..e20357b 100644
--- a/louloulibs/network/tcp_socket_handler.cpp
+++ b/louloulibs/network/tcp_socket_handler.cpp
@@ -109,8 +109,9 @@ void TCPSocketHandler::connect(const std::string& address, const std::string& po
addr_res = this->cares_addrinfo;
if (!addr_res)
{
+ const auto msg = this->cares_error;
this->close();
- this->on_connection_failed(this->cares_error);
+ this->on_connection_failed(msg);
return ;
}
}