[Bugfix][API-760] in long time network api calling test, 8004 failure hanppend 3
Change-Id: I16be297c0f3f8fa0fc95a8909447f9848667c2b2
diff --git a/src/lynq/lib/liblynq-call/lynq_module_socket.cpp b/src/lynq/lib/liblynq-call/lynq_module_socket.cpp
index a6b3dac..a7f1ec7 100755
--- a/src/lynq/lib/liblynq-call/lynq_module_socket.cpp
+++ b/src/lynq/lib/liblynq-call/lynq_module_socket.cpp
@@ -319,6 +319,7 @@
char urc_data[LYNQ_REC_BUF];
int res = 0;
lynq_head_t* phead;
+ int level,index,size;
LYINFLOG("urc recv thread is running");
while(module_urc_status)
@@ -341,8 +342,7 @@
{
LYERRLOG("new parcel failure!!!");
continue;
- }
- int level,index,size;
+ }
if(urc_data_is_in_shm_data(phead->resp_type,level,index,size))
{
urc_p->setData((uint8_t *)get_shem_buffer(level,index),size); // p.setData((uint8_t *) buffer, buflen);