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
cd8c4b43
Commit
cd8c4b43
authored
Dec 19, 2019
by
Christopher Bremner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't cancel missing subscription task
parent
bd9d8fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
asyncua/server/internal_subscription.py
asyncua/server/internal_subscription.py
+7
-4
No files found.
asyncua/server/internal_subscription.py
View file @
cd8c4b43
...
...
@@ -51,10 +51,13 @@ class InternalSubscription:
self
.
_task
=
self
.
loop
.
create_task
(
self
.
_subscription_loop
())
async
def
stop
(
self
):
self
.
logger
.
info
(
"stopping internal subscription %s"
,
self
.
data
.
SubscriptionId
)
self
.
_task
.
cancel
()
await
self
.
_task
self
.
_task
=
None
if
self
.
_task
:
self
.
logger
.
info
(
"stopping internal subscription %s"
,
self
.
data
.
SubscriptionId
)
self
.
_task
.
cancel
()
await
self
.
_task
self
.
_task
=
None
else
:
self
.
logger
.
debug
(
f"internal subscription has no task to stop"
)
self
.
monitored_item_srv
.
delete_all_monitored_items
()
def
_trigger_publish
(
self
):
...
...
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