fix hb exit issue
This commit is contained in:
parent
3d5073e785
commit
ae8f1cd5c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue