mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
Merge pull request #6 from NoodleDoodleNoodleDoodleNoodleDoodleNoo/patch-3
Update simpleminer.cpp
This commit is contained in:
commit
90a67a9900
@ -109,7 +109,7 @@ namespace mining
|
|||||||
if(!m_http_client.is_connected())
|
if(!m_http_client.is_connected())
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Connecting " << m_pool_ip << ":" << m_pool_port << "....");
|
LOG_PRINT_L0("Connecting " << m_pool_ip << ":" << m_pool_port << "....");
|
||||||
if(!m_http_client.connect(m_pool_ip, m_pool_port, 1000))
|
if(!m_http_client.connect(m_pool_ip, m_pool_port, 10000))
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Failed to connect " << m_pool_ip << ":" << m_pool_port << ", sleep....");
|
LOG_PRINT_L0("Failed to connect " << m_pool_ip << ":" << m_pool_port << ", sleep....");
|
||||||
epee::misc_utils::sleep_no_w(1000);
|
epee::misc_utils::sleep_no_w(1000);
|
||||||
@ -198,7 +198,7 @@ namespace mining
|
|||||||
LOG_PRINT_L0("Can't get new job! Disconnect and sleep....");
|
LOG_PRINT_L0("Can't get new job! Disconnect and sleep....");
|
||||||
m_http_client.disconnect();
|
m_http_client.disconnect();
|
||||||
epee::misc_utils::sleep_no_w(1000);
|
epee::misc_utils::sleep_no_w(1000);
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
if (getjob_response.blob.empty() && getjob_response.target.empty() && getjob_response.job_id.empty())
|
if (getjob_response.blob.empty() && getjob_response.target.empty() && getjob_response.job_id.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user