[Bugfix][API-409]update two sim sleep
Change-Id: I9790e55dfd4c044d0c6cbd85218d506c48a64023
diff --git a/lib/liblynq-sim/src/lynq_sim.cpp b/lib/liblynq-sim/src/lynq_sim.cpp
index 223011b..0d36320 100755
--- a/lib/liblynq-sim/src/lynq_sim.cpp
+++ b/lib/liblynq-sim/src/lynq_sim.cpp
@@ -20,6 +20,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <errno.h> /*add for get recvfrom errorid on 20220921*/
#define MAX_BUF 20
#define MAX_NUM 80
#define RIL_REQUEST_GET_SIM_STATUS 1
@@ -893,13 +894,7 @@
{
pthread_mutex_unlock(&g_lynq_sim_sendto_mutex);//recvfrom fail
RLOGD("screen recvform error\n");
- return recv_num;
- }
- else if(recv_num == 10060)
- {
- pthread_mutex_unlock(&g_lynq_sim_sendto_mutex); //recvfrom timeout
- RLOGD("recvfrom timeout\n");
- return recv_num;
+ return errno;
}
if(i == 1)
{