mirror of
https://github.com/monero-project/monero.git
synced 2026-08-03 01:15:55 -07:00
p2p: fix hanging shutdown
This commit is contained in:
@@ -110,7 +110,7 @@ namespace
|
||||
{
|
||||
if (!m_connections[id].is_nil())
|
||||
{
|
||||
m_tcp_server.get_config_object().close(m_connections[id]);
|
||||
m_tcp_server.get_config_object().close(m_connections[id], true);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace net_load_tests
|
||||
LOG_PRINT_L0("Connection isn't opened");
|
||||
return false;
|
||||
}
|
||||
if (!m_tcp_server.get_config_object().close(m_connections[idx]))
|
||||
if (!m_tcp_server.get_config_object().close(m_connections[idx], true))
|
||||
{
|
||||
LOG_PRINT_L0("Close connection error: " << m_connections[idx]);
|
||||
if (!ignore_close_fails)
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace
|
||||
if (!ctx.m_closed)
|
||||
{
|
||||
ctx.m_closed = true;
|
||||
m_tcp_server.get_config_object().close(ctx.m_connection_id);
|
||||
m_tcp_server.get_config_object().close(ctx.m_connection_id, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user