remove extraneous messages from reconnect loop; m_ioService must be the *LAST* object in the ASIO chain to be destroyed, otherwise weirdness will happen;

pull/33/head
Bryan Biedenkapp 3 years ago
parent 963a9ab421
commit 220ad671ac

@ -415,10 +415,7 @@ private:
json::object req = json::object();
int ret = RESTClient::send(m_chData.address(), m_chData.port(), m_chData.password(),
HTTP_GET, GET_STATUS, req, g_debug);
if (ret != network::rest::http::HTTPPayload::StatusType::OK) {
::LogError(LOG_HOST, "failed to get status for %s:%u, chNo = %u", m_chData.address().c_str(), m_chData.port(), m_channelNo);
}
else {
if (ret == network::rest::http::HTTPPayload::StatusType::OK) {
m_failed = false;
m_failCnt = 0U;
setText("UNKNOWN");

@ -129,12 +129,13 @@ namespace network
}
m_completed = true;
m_ioContext.stop();
if (m_connection != nullptr) {
m_connection->stop();
}
m_ioContext.stop();
wait();
}

Loading…
Cancel
Save

Powered by TurnKey Linux.