Skip to content
Snippets Groups Projects
Commit 54ab727b authored by Matt Traudt's avatar Matt Traudt
Browse files

Don't check if controller is okay for deleting until we need to

parent 5157f112
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,10 @@ class CircuitBuilder:
def __del__(self):
c = self.controller
if not stem_utils.is_controller_okay(c):
return
if not self.close_circuits_on_exit:
return
if not stem_utils.is_controller_okay(c):
return
for circ_id in self.built_circuits:
if c.get_circuit(circ_id, default=None):
c.close_circuit(circ_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment