mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
levin_protocol_handler_async: add missing response handler locking
This commit is contained in:
parent
f51bac990e
commit
7f4bb612fb
1 changed files with 9 additions and 5 deletions
|
@ -376,12 +376,16 @@ public:
|
||||||
if(m_cache_in_buffer.size() < m_current_head.m_cb)
|
if(m_cache_in_buffer.size() < m_current_head.m_cb)
|
||||||
{
|
{
|
||||||
is_continue = false;
|
is_continue = false;
|
||||||
if(cb >= MIN_BYTES_WANTED && !m_invoke_response_handlers.empty())
|
if(cb >= MIN_BYTES_WANTED)
|
||||||
{
|
{
|
||||||
//async call scenario
|
CRITICAL_REGION_LOCAL(m_invoke_response_handlers_lock);
|
||||||
boost::shared_ptr<invoke_response_handler_base> response_handler = m_invoke_response_handlers.front();
|
if (!m_invoke_response_handlers.empty())
|
||||||
response_handler->reset_timer();
|
{
|
||||||
MDEBUG(m_connection_context << "LEVIN_PACKET partial msg received. len=" << cb);
|
//async call scenario
|
||||||
|
boost::shared_ptr<invoke_response_handler_base> response_handler = m_invoke_response_handlers.front();
|
||||||
|
response_handler->reset_timer();
|
||||||
|
MDEBUG(m_connection_context << "LEVIN_PACKET partial msg received. len=" << cb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue