mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +00:00
TCPServer: stop reading before closing connection
This commit is contained in:
parent
662865ad70
commit
46b7c3e755
1 changed files with 2 additions and 0 deletions
|
@ -821,6 +821,8 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::Client::close()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uv_read_stop(reinterpret_cast<uv_stream_t*>(&m_socket));
|
||||||
|
|
||||||
uv_tcp_t* s = &m_socket;
|
uv_tcp_t* s = &m_socket;
|
||||||
uv_handle_t* h = reinterpret_cast<uv_handle_t*>(s);
|
uv_handle_t* h = reinterpret_cast<uv_handle_t*>(s);
|
||||||
if (!uv_is_closing(h)) {
|
if (!uv_is_closing(h)) {
|
||||||
|
|
Loading…
Reference in a new issue