From a8f8443c3aa4cf6e643cdbadbff86a7d09755ab0 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期四, 20 五月 2021 09:41:03 +0800 Subject: [PATCH] rebuild proto --- src/msg.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/msg.cpp b/src/msg.cpp index edffff1..c9ed60a 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -37,8 +37,12 @@ } auto n = meta()->count_.Dec(); if (n == 0) { - int64_t free_cmd = (id() << 4) | EncodeCmd(eCmdFree); - Sender().Send(BHTopicCenterAddress(), free_cmd); + if (meta()->managed_) { + int64_t free_cmd = (id() << 4) | EncodeCmd(eCmdFree); + Sender().Send(BHTopicCenterAddress(), free_cmd); + } else { + Free(); + } } else if (n < 0) { LOG_FATAL() << "error double release data."; throw std::runtime_error("double release msg."); -- Gitblit v1.8.0