Skip to content

Commit

Permalink
Merge pull request #942 from tarasfrompir/patch-24
Browse files Browse the repository at this point in the history
Update objects.class.php
  • Loading branch information
sergejey authored Mar 31, 2021
2 parents c932f65 + 9ec54f5 commit 6930408
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/objects/objects.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ function setProperty($property, $value, $no_linked = 0, $source = '')

if (function_exists('postToWebSocketQueue')) {
startMeasure('setproperty_postwebsocketqueue');
postToWebSocketQueue($this->object_title . '.' . $property, $value);
if ($old_value !== $value) {
postToWebSocketQueue($this->object_title . '.' . $property, $value);
}
endMeasure('setproperty_postwebsocketqueue');
}

Expand Down

0 comments on commit 6930408

Please sign in to comment.