提交 ae8f1cd5 编写于 作者: D dapan1121

fix hb exit issue

上级 3d5073e7
......@@ -655,6 +655,9 @@ static int32_t hbCreateThread() {
}
static void hbStopThread() {
if (0 == atomic_load_8(&clientHbMgr.inited)) {
return;
}
if (atomic_val_compare_exchange_8(&clientHbMgr.threadStop, 0, 1)) {
tscDebug("hb thread already stopped");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册