diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index 0c9c9130878123af85477bfad62c75425dabaf68..38644484c00e50805ca3a05e5557cb862058b340 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -1220,11 +1220,12 @@ int com_node(int a_argc, char ** a_argv, void **a_str_reply) if (res) { dap_cli_server_cmd_set_reply_text(a_str_reply, "No response from node"); // clean client struct - dap_chain_node_client_close_mt(l_client); + dap_chain_node_client_close_unsafe(l_client); DAP_DELETE(node_info); return -8; } DAP_DELETE(node_info); + dap_chain_node_client_close_unsafe(l_client); dap_cli_server_cmd_set_reply_text(a_str_reply, "Connection established"); } break;