Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
68b0ec39
Commit
68b0ec39
authored
Dec 23, 2015
by
ORD
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #88 from huazh/deadlock
fix deadlock
parents
21713f43
8fd23e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
opcua/address_space.py
opcua/address_space.py
+10
-6
No files found.
opcua/address_space.py
View file @
68b0ec39
...
...
@@ -395,13 +395,17 @@ class AddressSpace(object):
attval
=
node
.
attributes
[
attr
]
old
=
attval
.
value
attval
.
value
=
value
cbs
=
[]
if
old
.
Value
!=
value
.
Value
:
# only send call callback when a value change has happend
for
k
,
v
in
attval
.
datachange_callbacks
.
items
():
try
:
v
(
k
,
value
)
except
Exception
as
ex
:
self
.
logger
.
exception
(
"Error calling datachange callback %s, %s, %s"
,
k
,
v
,
ex
)
return
ua
.
StatusCode
()
cbs
=
list
(
attval
.
datachange_callbacks
.
items
())
for
k
,
v
in
cbs
:
try
:
v
(
k
,
value
)
except
Exception
as
ex
:
self
.
logger
.
exception
(
"Error calling datachange callback %s, %s, %s"
,
k
,
v
,
ex
)
return
ua
.
StatusCode
()
def
add_datachange_callback
(
self
,
nodeid
,
attr
,
callback
):
with
self
.
_lock
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment