mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
Code cleanup
This commit is contained in:
parent
ac58e8be2e
commit
3759fd4ac4
1 changed files with 5 additions and 1 deletions
|
@ -1024,7 +1024,7 @@ void p2pool::get_version()
|
||||||
const Params::Host host = current_host();
|
const Params::Host host = current_host();
|
||||||
|
|
||||||
JSONRPCRequest::call(host.m_address, host.m_rpcPort, "{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"get_version\"}", host.m_rpcLogin, m_params->m_socks5Proxy,
|
JSONRPCRequest::call(host.m_address, host.m_rpcPort, "{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"get_version\"}", host.m_rpcLogin, m_params->m_socks5Proxy,
|
||||||
[this, host](const char* data, size_t size, double)
|
[this](const char* data, size_t size, double)
|
||||||
{
|
{
|
||||||
parse_get_version_rpc(data, size);
|
parse_get_version_rpc(data, size);
|
||||||
},
|
},
|
||||||
|
@ -1688,7 +1688,11 @@ int p2pool::run()
|
||||||
load_found_blocks();
|
load_found_blocks();
|
||||||
const int rc = uv_run(uv_default_loop_checked(), UV_RUN_DEFAULT);
|
const int rc = uv_run(uv_default_loop_checked(), UV_RUN_DEFAULT);
|
||||||
LOGINFO(1, "uv_run exited, result = " << rc);
|
LOGINFO(1, "uv_run exited, result = " << rc);
|
||||||
|
|
||||||
|
WriteLock lock(m_ZMQReaderLock);
|
||||||
|
|
||||||
delete m_ZMQReader;
|
delete m_ZMQReader;
|
||||||
|
m_ZMQReader = nullptr;
|
||||||
}
|
}
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
const char* s = e.what();
|
const char* s = e.what();
|
||||||
|
|
Loading…
Reference in a new issue