Skip to content

Commit

Permalink
remove duplicated close code in tcp__cleanup_async_cb.
Browse files Browse the repository at this point in the history
`tt->reset_fn(tt)` aka `tcp__reset` already closed the tcp handle.
  • Loading branch information
xpol authored and cynron committed Mar 14, 2016
1 parent 3674e92 commit e24f8de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tr/uv/tr_uv_tcp_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,6 @@ void tcp__cleanup_async_cb(uv_async_t* a)
}

tcp__cleanup_pc_json(&tt->handshake_opts);

if (!uv_is_closing((uv_handle_t*)&tt->socket)) {
uv_close((uv_handle_t*)&tt->socket, NULL);
}
tt->reconn_times = 0;

#define C(x) uv_close((uv_handle_t*)&tt->x, NULL)
Expand Down

0 comments on commit e24f8de

Please sign in to comment.