Skip to content

Commit 3918827

Browse files
committed
Reset the viewer to None after closing the environment.
1 parent 6cb3702 commit 3918827

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crazyflow/sim/sim.py

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def seed(self, seed: int):
280280
def close(self):
281281
if self.viewer is not None:
282282
self.viewer.close()
283+
self.viewer = None
283284

284285
@property
285286
def time(self) -> Array:

0 commit comments

Comments
 (0)