From c855a14ae828f4d8f9c443ae1014664bcc7642b8 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-T772REH\\wangyu" Date: Wed, 5 Sep 2018 18:46:36 +0800 Subject: [PATCH] bug fix --- client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client.cpp b/client.cpp index 64505a7..9653113 100644 --- a/client.cpp +++ b/client.cpp @@ -514,6 +514,7 @@ int client_on_udp_recv(conn_info_t &conn_info) if ((recv_len = recvfrom(udp_fd, buf, max_data_len+1, 0, (struct sockaddr *) &udp_new_addr_in, &udp_new_addr_len)) == -1) { mylog(log_warn,"recv_from error,%s\n",get_sock_error()); + return -1; //myexit(1); };