Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodgers-PAC-Lab committed Mar 24, 2022
1 parent 9b03d3e commit ec78bc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions autopilot/tasks/children.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def end(self):
"""This is called when the STOP signal is received from the parent"""
self.logger.debug("Inside the self.end function")

self.node2.sock.close()
self.node2.release()

# Do this so it stops cycling through stages
Expand Down
2 changes: 2 additions & 0 deletions autopilot/tasks/paft_parent_child.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def end(self):

# Tell the child to end the task
self.node.send(to=prefs.get('NAME'), key='CHILD', value={'KEY': 'STOP'})

# This sock.close seems to be necessary to be able to communicate again
self.node.sock.close()
self.node.release()

Expand Down

0 comments on commit ec78bc9

Please sign in to comment.