Commit 2a977c46 authored by 黄振令's avatar 黄振令

【内容修改】如果tcp还没创建,等待几秒再发

【提交人】huang.zhenling
parent 34e7c939
......@@ -639,7 +639,7 @@ static void loop_tcp_client_thread(void *arg){
int kk_tcp_client_send(char* data, int len){
int ret = 0;
int cnt = 0;
if ( data != NULL && g_client_ctrl.isConnect == 1){
if ( data != NULL){
while(g_client_ctrl.sd == -1 && cnt < 5){
printf("[%s] tcp don't connect, sleep 1s !!!! \n",__FUNCTION__);
sleep(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment