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)