Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/host/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,12 @@ namespace asynchost

void on_accept(int rc)
{
if (uv_is_closing((uv_handle_t*)&uv_handle) != 0)
{
LOG_DEBUG_FMT("on_accept: closing");
return;
}

if (rc < 0)
{
LOG_DEBUG_FMT("on_accept failed: {}", uv_strerror(rc));
Expand Down Expand Up @@ -693,6 +699,12 @@ namespace asynchost

void on_connect(int rc)
{
if (uv_is_closing((uv_handle_t*)&uv_handle) != 0)
{
LOG_DEBUG_FMT("on_connect: closing");
return;
}

if (rc < 0)
{
// Try again on the next address.
Expand Down
Loading