Skip to content

Commit

Permalink
keep only router.close not the others
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodgers-PAC-Lab committed Mar 24, 2022
1 parent 6837088 commit a10c0bd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions autopilot/tasks/paft.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,8 @@ def end(self):

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


#~ # One of these is needed to prevent ZMQ Error
#~ self.node2.sock.close()
#~ self.node2.router.close()
#~ self.node2.loop.stop()
#~ self.node2.release()

self.node.release()

# This router.close() prevents ZMQError on the next start
self.node2.router.close()
self.node2.release()

0 comments on commit a10c0bd

Please sign in to comment.