[Bugfix][API-570][common] lynq_set_speech_volume lynq_get_speech_volume failure
Change-Id: I92a042cb74a2ec3c2478473827f1980944b2eaaa
diff --git a/src/lynq/lib/liblynq-network/lynq_network.cpp b/src/lynq/lib/liblynq-network/lynq_network.cpp
index 82a02c5..b735a25 100755
--- a/src/lynq/lib/liblynq-network/lynq_network.cpp
+++ b/src/lynq/lib/liblynq-network/lynq_network.cpp
@@ -209,7 +209,7 @@
waitResponse_end:
LYINFLOG("%s wait token is %d wakeup_token is %d, cnt is %d",__func__,waitToken,wakeup_token,cnt);
BLOCK_RC_MSG_UNLOCK();
- return !(wakeup_token==waitToken);
+ return wakeup_token==waitToken ? 0:LYNQ_E_TIME_OUT;
}
int JumpHeader(Parcel &p,int *resp_type,int* token,int *request,int *slot_id,int *error)
@@ -1515,7 +1515,7 @@
LYINFLOG("%s suc",__func__);
delete p;
- return -1;
+ return 0;
}
LYERRLOG("%s send request error %d",__func__,ret);