Commit de4fdd94 authored by Remi Perenon's avatar Remi Perenon

Modifying pluging MolecularViewerPlugin to unsubscribe from publisher on instance destruction

parent 8235f09d
Pipeline #3830 passed with stages
in 12 minutes 53 seconds
......@@ -273,6 +273,8 @@ class MolecularViewerPlugin(ComponentPlugin):
self.clear_universe()
def __del__(self):
PUBLISHER.unsubscribe(self.msg_set_selection, "msg_set_selection")
PUBLISHER.unsubscribe(self.msg_switch_viewers_state, "msg_switch_viewers_state")
PUBLISHER.unsubscribe(self.msg_clear_selection,'msg_clear_selection')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment