Commit 12c0e7a0 authored by Koseng's avatar Koseng Committed by oroulet

Fix no client callback on StatusCode change

parent 5ad1b9a1
......@@ -698,7 +698,8 @@ class AddressSpace:
old = attval.value
attval.value = value
cbs = []
if old.Value != value.Value: # only send call callback when a value change has happend
# only send call callback when a value or status code change has happened
if (old.Value != value.Value) or (old.StatusCode != value.StatusCode):
cbs = list(attval.datachange_callbacks.items())
for k, v in cbs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment