summaryrefslogtreecommitdiffstats
path: root/src/hs-client.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-11-21 16:02:53 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-11-23 10:10:34 +0800
commitcbb18a85dc4df6ca1317f543db5a9da7b84cf9e1 (patch)
tree14dce9ccf4a5d0fcc6630293b8f005d0c75d1a1b /src/hs-client.h
parent7a123d6d802fe76a6d2eb32adacb2215d5bb873a (diff)
Improvement:a client instance only call afb_req_subscribe once
when call subscribe every time, hs_client instance will call afb_req_subscribe once, this is needless, every hs_client always only has one event, so only need to call afb_req_subscribe once. Change-Id: I91417b749201fc378287e03f08dfd4dfd5df9dc7 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/hs-client.h')
-rw-r--r--src/hs-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hs-client.h b/src/hs-client.h
index 16fa39c..b06a717 100644
--- a/src/hs-client.h
+++ b/src/hs-client.h
@@ -47,6 +47,7 @@ private:
private:
std::string my_id;
afb_event_t my_event;
+ bool subscription = false;
std::unordered_map<std::string, int> event_list;
};