aboutsummaryrefslogtreecommitdiffstats
path: root/src/homescreen.cpp
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-05-20 10:40:21 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-05-20 10:40:21 +0800
commite24c504de6e4e98d500c6587bede79c7c93c84c2 (patch)
tree478a8e312cf51e51c5133520e6216c44e6ae8f40 /src/homescreen.cpp
parent560433708e4cbb466e170bc1370983f8eaaf23ca (diff)
fix handshake bug
Change-Id: I28af770a9f8d5ac63209038ca5939a2aab0bc318
Diffstat (limited to 'src/homescreen.cpp')
-rw-r--r--src/homescreen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/homescreen.cpp b/src/homescreen.cpp
index 7457f88..d63d5aa 100644
--- a/src/homescreen.cpp
+++ b/src/homescreen.cpp
@@ -73,6 +73,9 @@ int hs_handshake::hs_sts = hs_handshake::Handshake_Idle;
void handshake_subscribe_callback(struct json_object *obj, const char *error, const char *info)
{
AFB_NOTICE("subscribe handshake reply: obj=%s, error=%s, info=%s", json_object_to_json_string(obj), error, info);
+ if(hs_handshake::hs_sts == hs_handshake::Handshake_Over) {
+ return;
+ }
if(error == nullptr) {
hs_handshake::hs_sts = hs_handshake::Handshake_WaitEvent;
}