Commit 1fb0dcdd authored by Marek Vavruša's avatar Marek Vavruša

daemon: fixed leaking TCP handles when timeouted

parent e25abc9c
......@@ -91,6 +91,9 @@ static void tcp_recv(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
if (handle->data) {
worker_exec(worker, (uv_handle_t *)handle, NULL, NULL);
if (!uv_is_closing((uv_handle_t *)handle)) {
uv_close((uv_handle_t *)handle, handle_free);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment