From 9dc2e5a391c6c4ab5feeda3789d68671c71a910a Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 11 Nov 2017 01:58:21 -0600 Subject: [PATCH] trival --- main.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 3194ba0..7f255ad 100755 --- a/main.cpp +++ b/main.cpp @@ -229,11 +229,6 @@ int client_on_timer(conn_info_t &conn_info) //for client. called when a timer is return 0; } - if(get_current_time()-conn_info.last_hb_sent_timeclient_conn_uplink_timeout) { conn_info.state.client_current_state=client_idle; @@ -241,6 +236,14 @@ int client_on_timer(conn_info_t &conn_info) //for client. called when a timer is mylog(log_info,"state back to client_idle from client_ready bc of client-->server direction timeout\n"); } + + if(get_current_time()-conn_info.last_hb_sent_time\n",conn_info.oppsite_id,conn_info.my_id); if(hb_mode==0)