Skip to content

Commit c0e5f45

Browse files
committed
Release environments before simulation teardown
1 parent 0fddcfe commit c0e5f45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/isaaclab_tasks/test/env_test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def _check_random_actions(
470470
# Always ensure cleanup happens, regardless of success or failure
471471
if env is not None:
472472
env.close()
473+
env = None
473474

474475
# Drop unreachable environment objects while the device is still alive. Warp arrays
475476
# free device memory from a finalizer, so collect them before the simulation teardown

0 commit comments

Comments
 (0)