From f6bbe856724bc8982f4a9faf548b8db313ae5e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=D0=B5x=D0=B0nder=20Lysik=D0=BEv?= <alexander.lysikov@demlabs.net> Date: Thu, 19 Dec 2019 00:27:04 +0500 Subject: [PATCH] fixed looping state NET_STATE_LINKS_ESTABLISHED --- dap_chain_net.c | 1 + dap_chain_node_cli_cmd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dap_chain_net.c b/dap_chain_net.c index bcfb68cf33..c7b4d27b6a 100755 --- a/dap_chain_net.c +++ b/dap_chain_net.c @@ -405,6 +405,7 @@ lb_proc_state: dap_chain_net_get_cur_addr(l_net), sizeof (dap_chain_node_addr_t) ); } + PVT(l_net)->state = NET_STATE_SYNC_GDB; }break; case NODE_ROLE_CELL_MASTER: case NODE_ROLE_MASTER:{ diff --git a/dap_chain_node_cli_cmd.c b/dap_chain_node_cli_cmd.c index 41d5018ee9..2d6b43577b 100644 --- a/dap_chain_node_cli_cmd.c +++ b/dap_chain_node_cli_cmd.c @@ -969,7 +969,7 @@ int com_node(int a_argc, char ** a_argv, char **a_str_reply) return -1; } // wait connected - int timeout_ms = 5000; //5 sec = 5000 ms + int timeout_ms = 7000; //5 sec = 5000 ms res = dap_chain_node_client_wait(l_node_client, NODE_CLIENT_STATE_CONNECTED, timeout_ms); // select new node addr if(l_is_auto && res){ -- GitLab