[ntcore] Don't send value update to client setting value (#6375)

This commit is contained in:
Peter Johnson
2024-02-16 14:18:07 -08:00
committed by GitHub
parent ba15844c28
commit 0cdab55e5b

View File

@@ -1816,7 +1816,8 @@ void ServerImpl::SetValue(ClientData* client, TopicData* topic,
}
for (auto&& tcd : topic->clients) {
if (tcd.second.sendMode != ValueSendMode::kDisabled) {
if (tcd.first != client &&
tcd.second.sendMode != ValueSendMode::kDisabled) {
tcd.first->SendValue(topic, value, tcd.second.sendMode);
}
}