修改锁使用问题

Signed-off-by: li-tiangang4 <litiangang4@huawei.com>
This commit is contained in:
li-tiangang4
2024-05-28 10:47:16 +08:00
parent 72ab0d7449
commit 4be3f734c5
@@ -948,7 +948,6 @@ void DistributedInputSinkManager::CallBackScreenInfoChange()
}
nlohmann::json screenMsg(transInfos);
std::string str = screenMsg.dump();
std::lock_guard<std::mutex> lock(mutex_);
for (const auto &iter : getSinkScreenInfosCallbacks_) {
iter->OnResult(str);
}