File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def node(self):
9393 return self ._node
9494
9595 def _update_subscription (self , state : StateEnum ):
96- if not self ._stopped and state == StateEnum .STOPPED :
96+ if not self ._stopped and state in ( StateEnum .STOPPED , StateEnum . INITIALISATION ) :
9797 self ._node .network .remove_subscription (self ._cob_rx )
9898 self ._stopped = True
9999 return
@@ -107,7 +107,7 @@ def _update_subscription(self, state: StateEnum):
107107 self ._stopped = False
108108
109109 def _update_node (self , state : StateEnum ):
110- if not self ._stopped and state == StateEnum .STOPPED :
110+ if not self ._stopped and state in ( StateEnum .STOPPED , StateEnum . INITIALISATION ) :
111111 self ._node .network .remove_subscription (self ._cob_rx )
112112 self ._stopped = True
113113 return
You can’t perform that action at this time.
0 commit comments