call close method of Wrapper when overriding (#2711)

add a call to __del__ of parent class

Revert "add a call to __del__ of parent class"

This reverts commit 24d40d871e4a5858a4a2e70bdc2c155504b4e5a6.
This commit is contained in:
witoong623
2022-03-26 00:21:59 +07:00
committed by GitHub
parent 05df86e104
commit d6a3431c60

View File

@@ -118,6 +118,7 @@ class RecordVideo(gym.Wrapper):
self.recorded_frames = 1
def close(self):
super().close()
self.close_video_recorder()
def __del__(self):