Reverted force close TCP connections

pull/5/head
SChernykh 2021-08-25 17:27:46 +02:00
parent 230d3e4780
commit fa3146a8f3
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::Client::close()
uv_tcp_t* s = &m_socket;
uv_handle_t* h = reinterpret_cast<uv_handle_t*>(s);
if (!uv_is_closing(h)) {
uv_tcp_close_reset(s, on_connection_close);
uv_close(h, on_connection_close);
}
}