Skip to content

Commit

Permalink
Update mujoco_env.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas authored Nov 10, 2023
1 parent 40f5c7b commit a06ac6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gymnasium/envs/mujoco/mujoco_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def _get_viewer(

def close(self):
if self.viewer is not None:
self.viewer.free()
self.viewer = None
self._viewers = {}

Expand Down

0 comments on commit a06ac6d

Please sign in to comment.