Skip to content

Commit

Permalink
[ntcore] Don't send value update to client setting value
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Feb 16, 2024
1 parent 6afff99 commit dc888ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ntcore/src/main/native/cpp/net/ServerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit dc888ac

Please sign in to comment.