Move support for when async_connect fails to open the socket.

This commit is contained in:
Christopher Kohlhoff 2011-04-27 22:10:11 +10:00
parent c8a324289f
commit 17c51bd3da

View File

@ -711,7 +711,8 @@ public:
if (this->get_service().open(this->get_implementation(), protocol, ec))
{
this->get_io_service().post(
asio::detail::bind_handler(handler, ec));
asio::detail::bind_handler(
ASIO_MOVE_CAST(ConnectHandler)(handler), ec));
return;
}
}