Skip to content

Commit

Permalink
[python] ivy_msg_interface: unbind after IvyStop
Browse files Browse the repository at this point in the history
to prevent having unhandled subscriptions
  • Loading branch information
flixr committed Dec 28, 2015
1 parent f98e316 commit 3f4d1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/lib/python/ivy_msg_interface.py
Expand Up @@ -28,15 +28,15 @@ def stop(self):
IvyUnBindMsg(self.ivy_id)

def shutdown(self):
self.stop()
try:
IvyStop()
self.stop()
except IvyIllegalStateError as e:
print(e)

def __del__(self):
try:
IvyUnBindMsg(self.ivy_id)
self.shutdown()
except:
pass

Expand Down

0 comments on commit 3f4d1e1

Please sign in to comment.