From 14b7f9237bf2252bfbd45ce9dbe193853d31979d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 29 Dec 2023 18:58:58 +0000 Subject: [PATCH] A uv_connect_t is not a handle that can be closed. Fixes a crash. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4701 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ssb.c b/src/ssb.c index 4ec0caf3..6d5c2718 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -1881,10 +1881,6 @@ static void _tf_ssb_connection_destroy(tf_ssb_connection_t* connection, const ch { uv_close((uv_handle_t*)&connection->tcp, _tf_ssb_connection_on_close); } - if (connection->connect.data && !uv_is_closing((uv_handle_t*)&connection->connect)) - { - uv_close((uv_handle_t*)&connection->connect, _tf_ssb_connection_on_close); - } if (JS_IsUndefined(connection->object) && !connection->async.data &&