Skip to content

Commit

Permalink
fix no connect retry on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgully committed Feb 19, 2019
1 parent a6e13f5 commit be5a435
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libpoolprotocols/getwork/EthGetworkClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void EthGetworkClient::handle_connect(const boost::system::error_code& ec)
// This endpoint does not respond
// Pop it and retry
cwarn << "Error connecting to " << m_conn->Host() << ":" << toString(m_conn->Port())
<< " : " << ec.message();
<< " : " << ec;
m_endpoints.pop();
begin_connect();
}
Expand All @@ -214,7 +214,7 @@ void EthGetworkClient::handle_write(const boost::system::error_code& ec)
if (ec != boost::asio::error::operation_aborted)
{
cwarn << "Error writing to " << m_conn->Host() << ":" << toString(m_conn->Port())
<< " : " << ec.message();
<< " : " << ec;
m_endpoints.pop();
begin_connect();
}
Expand Down Expand Up @@ -344,7 +344,7 @@ void EthGetworkClient::handle_read(
{
cwarn << "Error reading from :" << m_conn->Host() << ":" << toString(m_conn->Port())
<< " : "
<< ec.message();
<< ec;
disconnect();
}

Expand All @@ -368,7 +368,7 @@ void EthGetworkClient::handle_resolve(
}
else
{
cwarn << "Could not resolve host " << m_conn->Host() << ", " << ec.message();
cwarn << "Could not resolve host " << m_conn->Host() << ", " << ec;
disconnect();
}
}
Expand Down

0 comments on commit be5a435

Please sign in to comment.